225 references to WriteAttributeString
illink (14)
Microsoft.Build (4)
Construction\Solution\SolutionProjectGenerator.cs (4)
276xw.WriteAttributeString("Project", project.ProjectGuid); 277xw.WriteAttributeString("AbsolutePath", project.AbsolutePath); 278xw.WriteAttributeString("BuildProjectInSolution", projectConfiguration.IncludeInBuild.ToString()); 299xw.WriteAttributeString("Project", dependencyProjectGuid);
Microsoft.CodeAnalysis.Test.Utilities (8)
Win32Res.cs (8)
95xw.WriteAttributeString("Size", size.ToString()); 178xw.WriteAttributeString("Size", size.ToString()); 186xw.WriteAttributeString("FileVersionMS", String.Format("{0:x8}", reader.ReadUInt32())); 187xw.WriteAttributeString("FileVersionLS", String.Format("{0:x8}", reader.ReadUInt32())); 188xw.WriteAttributeString("ProductVersionMS", String.Format("{0:x8}", reader.ReadUInt32())); 189xw.WriteAttributeString("ProductVersionLS", String.Format("{0:x8}", reader.ReadUInt32())); 225xw.WriteAttributeString("Key", pair.Item1.TrimEnd(new char[] { '\0' })); 226xw.WriteAttributeString("Value", pair.Item2.TrimEnd(new char[] { '\0' }));
Microsoft.Maui.Resizetizer (1)
GenerateSplashAndroidResources.cs (1)
100 writer.WriteAttributeString("name", "maui_splash_color");
PresentationBuildTasks (4)
MS\Internal\Localization\LocalizationParserHooks.cs (4)
113writer.WriteAttributeString(LocComments.LocFileNameAttribute, _compiler.SourceFileInfo.RelativeSourceFilePath); 118writer.WriteAttributeString(LocComments.LocCommentIDAttribute, comment.Uid); 122writer.WriteAttributeString(LocComments.LocLocalizabilityAttribute, comment.Attributes); 127writer.WriteAttributeString(LocComments.LocCommentsAttribute, comment.Comments);
PresentationFramework (54)
MS\Internal\LayoutDump.cs (35)
297writer.WriteAttributeString("Type", page.GetType().FullName); 339writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture)); 363writer.WriteAttributeString("Count", uiElements.Count.ToString(CultureInfo.InvariantCulture)); 380writer.WriteAttributeString("Left", point.X.ToString("F", CultureInfo.InvariantCulture)); 381writer.WriteAttributeString("Top", point.Y.ToString("F", CultureInfo.InvariantCulture)); 391writer.WriteAttributeString("Width", size.Width.ToString ("F", CultureInfo.InvariantCulture)); 392writer.WriteAttributeString("Height", size.Height.ToString("F", CultureInfo.InvariantCulture)); 402writer.WriteAttributeString("Left", rect.Left.ToString ("F", CultureInfo.InvariantCulture)); 403writer.WriteAttributeString("Top", rect.Top.ToString ("F", CultureInfo.InvariantCulture)); 404writer.WriteAttributeString("Width", rect.Width.ToString ("F", CultureInfo.InvariantCulture)); 405writer.WriteAttributeString("Height", rect.Height.ToString("F", CultureInfo.InvariantCulture)); 493writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture)); 582writer.WriteAttributeString("Count", flowDocumentPage.FormattedLinesCount.ToString(CultureInfo.InvariantCulture)); 602writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 603writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 616writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 617writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 627writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 628writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 631writer.WriteAttributeString("HiddenLength", (cpEnd - cpContentEnd).ToString(CultureInfo.InvariantCulture)); 635writer.WriteAttributeString("EllipsesLength", (cpEnd - cpEllipses).ToString(CultureInfo.InvariantCulture)); 649writer.WriteAttributeString("Count", lines.Count.ToString(CultureInfo.InvariantCulture)); 690writer.WriteAttributeString("Count", paragraphs.Count.ToString(CultureInfo.InvariantCulture)); 738writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 760writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 778writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 796writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 813writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 860writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 877writer.WriteAttributeString("Count", columns.Count.ToString(CultureInfo.InvariantCulture)); 935writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture)); 967writer.WriteAttributeString("ColumnIndex", columnIndex.ToString(CultureInfo.InvariantCulture)); 975writer.WriteAttributeString("RowIndex", rowIndex.ToString(CultureInfo.InvariantCulture)); 978writer.WriteAttributeString("ColumnSpan", cell.ColumnSpan.ToString(CultureInfo.InvariantCulture)); 979writer.WriteAttributeString("RowSpan", cell.RowSpan.ToString(CultureInfo.InvariantCulture));
System\Windows\Annotations\Annotation.cs (3)
203writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 204writer.WriteAttributeString(AnnotationXmlConstants.Attributes.CreationTime, XmlConvert.ToString(_created)); 205writer.WriteAttributeString(AnnotationXmlConstants.Attributes.LastModificationTime, XmlConvert.ToString(_modified));
System\Windows\Annotations\AnnotationResource.cs (2)
118writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 121writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ResourceName, _name);
System\Windows\Annotations\LocatorPartList.cs (2)
186writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemName, pair.Key); 187writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemValue, pair.Value);
System\Windows\Documents\TextRangeSerialization.cs (10)
674xmlWriter.WriteAttributeString(xmlns, xmlNamespace); 691xmlWriter.WriteAttributeString("xml:space", "preserve"); 714xmlWriter.WriteAttributeString(Section.HasTrailingParagraphBreakOnPastePropertyName, "False"); 750xmlWriter.WriteAttributeString(propertyName, stringValue); 815xmlWriter.WriteAttributeString(propertyName, stringValue); 937xmlWriter.WriteAttributeString(property.Name, stringValue); 981xmlWriter.WriteAttributeString(propertyName, stringValue); 1131xmlWriter.WriteAttributeString(property.Name, stringValue); 1190xmlWriter.WriteAttributeString(System.Windows.Media.Imaging.BitmapImage.UriSourceProperty.Name, imageSource); 1191xmlWriter.WriteAttributeString(System.Windows.Media.Imaging.BitmapImage.CacheOptionProperty.Name, "OnLoad");
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
564_writer.WriteAttributeString(localName, property.StringValue); 587_writer.WriteAttributeString(property.PropertyDescriptor.Name, property.StringValue);
ReachFramework (65)
AlphaFlattener\Flattener.cs (5)
469writer.WriteAttributeString("xmlns", "http://schemas.microsoft.com/winfx/2006/xaml/presentation"); 470writer.WriteAttributeString("xmlns:x", "http://schemas.microsoft.com/winfx/2006/xaml"); 474writer.WriteAttributeString("Width", width.ToString(CultureInfo.InvariantCulture)); 475writer.WriteAttributeString("Height", height.ToString(CultureInfo.InvariantCulture)); 476writer.WriteAttributeString("Background", "White");
Packaging\XpsFixedDocumentReaderWriter.cs (1)
857xmlWriter.WriteAttributeString(XmlTags.Source, relativePath);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
489xmlWriter.WriteAttributeString(XmlTags.Source, relativePath);
Packaging\XPSSignatureDefinition.cs (6)
338writer.WriteAttributeString(XpsS0Markup.SpotId, XmlConvert.EncodeName(SpotId.ToString())); 347writer.WriteAttributeString(XpsS0Markup.RequestedSigner, RequestedSigner); 353writer.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 364writer.WriteAttributeString(XpsS0Markup.PageUri, pageUriAsString); 365writer.WriteAttributeString(XpsS0Markup.StartX, SpotLocation.StartX.ToString(System.Globalization.CultureInfo.InvariantCulture)); 366writer.WriteAttributeString(XpsS0Markup.StartY, SpotLocation.StartY.ToString(System.Globalization.CultureInfo.InvariantCulture));
PrintConfig\PrintCapabilitesWriter.cs (1)
74this._writer.WriteAttributeString("version", "1");
Serialization\Manager\ReachDocumentPageSerializer.cs (5)
109XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 110XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 114XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 118XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 201writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (5)
172XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 173XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 177XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 181XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 285writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
155XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
193XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
226XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
266XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedPageSerializer.cs (4)
163XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 164XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 175XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 303XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
188XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 189XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 200XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 275XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachSerializationUtils.cs (6)
587xmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 588xmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 589xmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 608xmlWriter.WriteAttributeString(XpsS0Markup.PageWidth, 610xmlWriter.WriteAttributeString(XpsS0Markup.PageHeight, 1013writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (5)
141XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 142XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 146XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 150XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 232writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMFixedPageSerializer.cs (4)
153XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 154XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 165XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 268XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\VisualSerializer.cs (14)
305_writer.WriteAttributeString(attribute, GetString(val)); 315_writer.WriteAttributeString(attribute, sval); 891_writer.WriteAttributeString(attribute, str); 899_writer.WriteAttributeString(attribute, "{StaticResource " + ob + "}"); 903_writer.WriteAttributeString(attribute, "{DynamicResource " + ob + "}"); 957_writer.WriteAttributeString("StrokeDashArray",doubleString ); 1072_writer.WriteAttributeString("Points", rslt.ToString()); 1110_writer.WriteAttributeString("Points", rslt.ToString()); 1371_writer.WriteAttributeString(attribute, GetString(mat)); 1379_writer.WriteAttributeString(attribute, GetString(trans)); 1410_writer.WriteAttributeString(attr, str); 1428_writer.WriteAttributeString("FillRule", str); 1455_writer.WriteAttributeString(attribute, p); 1476_writer.WriteAttributeString("Figures", p.Substring(3));
Roslyn.Test.PdbUtilities (6)
Reader\Token2SourceLineExporter.cs (6)
1169writer.WriteAttributeString("token", Token2String(rec.token, maskToken)); 1170writer.WriteAttributeString("file", rec.sourceFile.name); 1171writer.WriteAttributeString("start-line", rec.line.ToString()); 1172writer.WriteAttributeString("start-column", rec.column.ToString()); 1173writer.WriteAttributeString("end-line", rec.endLine.ToString()); 1174writer.WriteAttributeString("end-column", rec.endColumn.ToString());
System.Configuration.ConfigurationManager (6)
System\Configuration\ConfigurationElement.cs (3)
1106writer.WriteAttributeString(prop.Name, xmlValue); 1124writer?.WriteAttributeString(LockItemKey, true.ToString().ToLowerInvariant()); 1196writer.WriteAttributeString(elementKey, sb.ToString());
System\Diagnostics\ListenerElementsCollection.cs (1)
259writer.WriteAttributeString(xmlName, xmlValue);
System\Diagnostics\SourceElementsCollection.cs (1)
110writer.WriteAttributeString(xmlName, xmlValue);
System\Diagnostics\SwitchElementsCollection.cs (1)
74writer.WriteAttributeString(xmlName, xmlValue);
System.IO.Packaging (8)
System\IO\Packaging\InternalRelationshipCollection.cs (4)
501writer.WriteAttributeString(TypeAttributeName, relationship.RelationshipType); 511writer.WriteAttributeString(TargetAttributeName, relationship.TargetUri.OriginalString); 515writer.WriteAttributeString(TargetModeAttributeName, relationship.TargetMode.ToString()); 518writer.WriteAttributeString(IdAttributeName, relationship.Id);
System\IO\Packaging\ZipPackage.cs (4)
1260xmlWriter.WriteAttributeString(PartNameAttributeName, 1262xmlWriter.WriteAttributeString(ContentTypeAttributeName, contentType.ToString()); 1269xmlWriter.WriteAttributeString(ExtensionAttributeName, extension); 1270xmlWriter.WriteAttributeString(ContentTypeAttributeName, contentType.ToString());
System.Private.DataContractSerialization (11)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (11)
56writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 62writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 68writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 74writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 80writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 86writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 92writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 98writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 104writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString); 110writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.booleanString); 116writer.WriteAttributeString(JsonGlobals.typeString, JsonGlobals.numberString);
System.Private.Xml (12)
System\Xml\Serialization\XmlSerializationWriter.cs (2)
880_w.WriteAttributeString("href", $"#{GetId(o, true)}"); 918_w.WriteAttributeString("id", GetId(o, addToReferencesList));
System\Xml\Xsl\IlGen\XmlILTrace.cs (2)
114w.WriteAttributeString("timestamp", DateTime.Now.ToString(CultureInfo.InvariantCulture)); 172w.WriteAttributeString("rewrite", rewriteName);
System\Xml\Xsl\QIL\QilXmlWriter.cs (8)
126this.writer.WriteAttributeString("lineInfo", string.Format(CultureInfo.InvariantCulture, "[{0},{1} -- {2},{3}]", 137this.writer.WriteAttributeString("xmlType", node.XmlType!.ToString((this.options & Options.RoundTripTypeInfo) != 0 ? "S" : "G")); 159this.writer.WriteAttributeString("id", _ngen.NameOf(node)); 163this.writer.WriteAttributeString("name", reference.DebugName.ToString()); 189this.writer.WriteAttributeString("id", name); 191this.writer.WriteAttributeString("name", reference.DebugName.ToString()); 210this.writer.WriteAttributeString("id", _ngen.NameOf(n)); 242this.writer.WriteAttributeString("name", value.ToString());
System.ServiceModel.Syndication (15)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (8)
218writer.WriteAttributeString(Atom10Constants.TermTag, categoryName); 222writer.WriteAttributeString(Atom10Constants.LabelTag, category.Label); 226writer.WriteAttributeString(Atom10Constants.SchemeTag, category.Scheme); 470writer.WriteAttributeString(Atom10Constants.RelativeTag, link.RelationshipType); 474writer.WriteAttributeString(Atom10Constants.TypeTag, link.MediaType); 478writer.WriteAttributeString(Atom10Constants.TitleTag, link.Title); 482writer.WriteAttributeString(Atom10Constants.LengthTag, link.Length.ToString(CultureInfo.InvariantCulture)); 486writer.WriteAttributeString(Atom10Constants.HrefTag, FeedUtils.GetUriString(link.Uri));
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (4)
317writer.WriteAttributeString(Atom10Constants.SchemeTag, categories.Scheme); 322writer.WriteAttributeString(App10Constants.Fixed, "yes"); 336writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(categories.Link)); 577writer.WriteAttributeString(App10Constants.Href, FeedUtils.GetUriString(collection.Link));
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (3)
844writer.WriteAttributeString(Rss20Constants.VersionTag, Rss20Constants.Version); 1024writer.WriteAttributeString(Rss20Constants.IsPermaLinkTag, "true"); 1028writer.WriteAttributeString(Rss20Constants.IsPermaLinkTag, "false");
System.Windows.Forms (17)
System\Resources\ResXResourceWriter.cs (10)
186_xmlTextWriter.WriteAttributeString(NameStr, ResMimeTypeStr); 199_xmlTextWriter.WriteAttributeString(NameStr, VersionStr); 212_xmlTextWriter.WriteAttributeString(NameStr, ReaderStr); 225_xmlTextWriter.WriteAttributeString(NameStr, WriterStr); 427Writer.WriteAttributeString(NameStr, name); 431Writer.WriteAttributeString(TypeStr, $"{GetTypeName(type)}, {alias}"); 437Writer.WriteAttributeString(TypeStr, type); 443Writer.WriteAttributeString(MimeTypeStr, mimeType); 481Writer.WriteAttributeString(AliasStr, alias); 486Writer.WriteAttributeString(NameStr, name);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (7)
82xmlWriter.WriteAttributeString("Name", c.Name.ToString()); 83xmlWriter.WriteAttributeString("Row", c.Row.ToString(CultureInfo.CurrentCulture)); 84xmlWriter.WriteAttributeString("RowSpan", c.RowSpan.ToString(CultureInfo.CurrentCulture)); 86xmlWriter.WriteAttributeString("Column", c.Column.ToString(CultureInfo.CurrentCulture)); 87xmlWriter.WriteAttributeString("ColumnSpan", c.ColumnSpan.ToString(CultureInfo.CurrentCulture)); 107xmlWriter.WriteAttributeString("Styles", columnStyles.ToString()); 123xmlWriter.WriteAttributeString("Styles", rowStyles.ToString());