224 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' }));
PresentationBuildTasks (4)
MS\Internal\Localization\LocalizationParserHooks.cs (4)
114writer.WriteAttributeString(LocComments.LocFileNameAttribute, _compiler.SourceFileInfo.RelativeSourceFilePath); 119writer.WriteAttributeString(LocComments.LocCommentIDAttribute, comment.Uid); 123writer.WriteAttributeString(LocComments.LocLocalizabilityAttribute, comment.Attributes); 128writer.WriteAttributeString(LocComments.LocCommentsAttribute, comment.Comments);
PresentationFramework (54)
MS\Internal\LayoutDump.cs (35)
300writer.WriteAttributeString("Type", page.GetType().FullName); 342writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture)); 366writer.WriteAttributeString("Count", uiElements.Count.ToString(CultureInfo.InvariantCulture)); 383writer.WriteAttributeString("Left", point.X.ToString("F", CultureInfo.InvariantCulture)); 384writer.WriteAttributeString("Top", point.Y.ToString("F", CultureInfo.InvariantCulture)); 394writer.WriteAttributeString("Width", size.Width.ToString ("F", CultureInfo.InvariantCulture)); 395writer.WriteAttributeString("Height", size.Height.ToString("F", CultureInfo.InvariantCulture)); 405writer.WriteAttributeString("Left", rect.Left.ToString ("F", CultureInfo.InvariantCulture)); 406writer.WriteAttributeString("Top", rect.Top.ToString ("F", CultureInfo.InvariantCulture)); 407writer.WriteAttributeString("Width", rect.Width.ToString ("F", CultureInfo.InvariantCulture)); 408writer.WriteAttributeString("Height", rect.Height.ToString("F", CultureInfo.InvariantCulture)); 496writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).ToString("F", CultureInfo.InvariantCulture)); 585writer.WriteAttributeString("Count", flowDocumentPage.FormattedLinesCount.ToString(CultureInfo.InvariantCulture)); 605writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 606writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 619writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 620writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 630writer.WriteAttributeString("Start", cpStart.ToString(CultureInfo.InvariantCulture)); 631writer.WriteAttributeString("Length", (cpEnd - cpStart).ToString(CultureInfo.InvariantCulture)); 634writer.WriteAttributeString("HiddenLength", (cpEnd - cpContentEnd).ToString(CultureInfo.InvariantCulture)); 638writer.WriteAttributeString("EllipsesLength", (cpEnd - cpEllipses).ToString(CultureInfo.InvariantCulture)); 652writer.WriteAttributeString("Count", lines.Count.ToString(CultureInfo.InvariantCulture)); 693writer.WriteAttributeString("Count", paragraphs.Count.ToString(CultureInfo.InvariantCulture)); 741writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 763writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 781writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 799writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 816writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 863writer.WriteAttributeString("Type", paragraph.Element.GetType().FullName); 880writer.WriteAttributeString("Count", columns.Count.ToString(CultureInfo.InvariantCulture)); 938writer.WriteAttributeString("Count", count.ToString(CultureInfo.InvariantCulture)); 970writer.WriteAttributeString("ColumnIndex", columnIndex.ToString(CultureInfo.InvariantCulture)); 978writer.WriteAttributeString("RowIndex", rowIndex.ToString(CultureInfo.InvariantCulture)); 981writer.WriteAttributeString("ColumnSpan", cell.ColumnSpan.ToString(CultureInfo.InvariantCulture)); 982writer.WriteAttributeString("RowSpan", cell.RowSpan.ToString(CultureInfo.InvariantCulture));
System\Windows\Annotations\Annotation.cs (3)
210writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 211writer.WriteAttributeString(AnnotationXmlConstants.Attributes.CreationTime, XmlConvert.ToString(_created)); 212writer.WriteAttributeString(AnnotationXmlConstants.Attributes.LastModificationTime, XmlConvert.ToString(_modified));
System\Windows\Annotations\AnnotationResource.cs (2)
124writer.WriteAttributeString(AnnotationXmlConstants.Attributes.Id, XmlConvert.ToString(_id)); 127writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ResourceName, _name);
System\Windows\Annotations\LocatorPartList.cs (2)
193writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemName, pair.Key); 194writer.WriteAttributeString(AnnotationXmlConstants.Attributes.ItemValue, pair.Value);
System\Windows\Documents\TextRangeSerialization.cs (10)
680xmlWriter.WriteAttributeString(xmlns, xmlNamespace); 697xmlWriter.WriteAttributeString("xml:space", "preserve"); 720xmlWriter.WriteAttributeString(Section.HasTrailingParagraphBreakOnPastePropertyName, "False"); 756xmlWriter.WriteAttributeString(propertyName, stringValue); 821xmlWriter.WriteAttributeString(propertyName, stringValue); 943xmlWriter.WriteAttributeString(property.Name, stringValue); 987xmlWriter.WriteAttributeString(propertyName, stringValue); 1137xmlWriter.WriteAttributeString(property.Name, stringValue); 1196xmlWriter.WriteAttributeString(System.Windows.Media.Imaging.BitmapImage.UriSourceProperty.Name, imageSource); 1197xmlWriter.WriteAttributeString(System.Windows.Media.Imaging.BitmapImage.CacheOptionProperty.Name, "OnLoad");
System\Windows\Markup\Primitives\MarkupWriter.cs (2)
571_writer.WriteAttributeString(localName, property.StringValue); 594_writer.WriteAttributeString(property.PropertyDescriptor.Name, property.StringValue);
ReachFramework (65)
AlphaFlattener\Flattener.cs (5)
474writer.WriteAttributeString("xmlns", "http://schemas.microsoft.com/winfx/2006/xaml/presentation"); 475writer.WriteAttributeString("xmlns:x", "http://schemas.microsoft.com/winfx/2006/xaml"); 479writer.WriteAttributeString("Width", width.ToString(CultureInfo.InvariantCulture)); 480writer.WriteAttributeString("Height", height.ToString(CultureInfo.InvariantCulture)); 481writer.WriteAttributeString("Background", "White");
Packaging\XpsFixedDocumentReaderWriter.cs (1)
861xmlWriter.WriteAttributeString(XmlTags.Source, relativePath);
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
493xmlWriter.WriteAttributeString(XmlTags.Source, relativePath);
Packaging\XPSSignatureDefinition.cs (6)
344writer.WriteAttributeString(XpsS0Markup.SpotId, XmlConvert.EncodeName(SpotId.ToString())); 353writer.WriteAttributeString(XpsS0Markup.RequestedSigner, RequestedSigner); 359writer.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 370writer.WriteAttributeString(XpsS0Markup.PageUri, pageUriAsString); 371writer.WriteAttributeString(XpsS0Markup.StartX, SpotLocation.StartX.ToString(System.Globalization.CultureInfo.InvariantCulture)); 372writer.WriteAttributeString(XpsS0Markup.StartY, SpotLocation.StartY.ToString(System.Globalization.CultureInfo.InvariantCulture));
PrintConfig\PrintCapabilitesWriter.cs (1)
77this._writer.WriteAttributeString("version", "1");
Serialization\Manager\ReachDocumentPageSerializer.cs (5)
119XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 120XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 124XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 128XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 211writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (5)
183XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 184XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 188XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 192XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 296writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
166XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
204XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
238XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
278XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedPageSerializer.cs (4)
172XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 173XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 184XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 312XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
197XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 198XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 209XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 284XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\Manager\ReachSerializationUtils.cs (6)
597xmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 598xmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 599xmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 618xmlWriter.WriteAttributeString(XpsS0Markup.PageWidth, 620xmlWriter.WriteAttributeString(XpsS0Markup.PageHeight, 1023writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (5)
151XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 152XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 156XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, SerializationManager.Language.ToString()); 160XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, XpsS0Markup.XmlLangValue); 242writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMFixedPageSerializer.cs (4)
162XmlWriter.WriteAttributeString(XpsS0Markup.Xmlns, xmlnsForType); 163XmlWriter.WriteAttributeString(XpsS0Markup.XmlnsX, XpsS0Markup.XmlnsXSchema); 174XmlWriter.WriteAttributeString(XpsS0Markup.XmlLang, language.ToString()); 277XmlWriter.WriteAttributeString(serializablePropertyContext.Name, attributeValue);
Serialization\VisualSerializer.cs (14)
313_writer.WriteAttributeString(attribute, GetString(val)); 323_writer.WriteAttributeString(attribute, sval); 899_writer.WriteAttributeString(attribute, str); 907_writer.WriteAttributeString(attribute, "{StaticResource " + ob + "}"); 911_writer.WriteAttributeString(attribute, "{DynamicResource " + ob + "}"); 965_writer.WriteAttributeString("StrokeDashArray",doubleString ); 1080_writer.WriteAttributeString("Points", rslt.ToString()); 1118_writer.WriteAttributeString("Points", rslt.ToString()); 1379_writer.WriteAttributeString(attribute, GetString(mat)); 1387_writer.WriteAttributeString(attribute, GetString(trans)); 1418_writer.WriteAttributeString(attr, str); 1436_writer.WriteAttributeString("FillRule", str); 1463_writer.WriteAttributeString(attribute, p); 1484_writer.WriteAttributeString("Figures", p.Substring(3));
Roslyn.Test.PdbUtilities (6)
Reader\Token2SourceLineExporter.cs (6)
1173writer.WriteAttributeString("token", Token2String(rec.token, maskToken)); 1174writer.WriteAttributeString("file", rec.sourceFile.name); 1175writer.WriteAttributeString("start-line", rec.line.ToString()); 1176writer.WriteAttributeString("start-column", rec.column.ToString()); 1177writer.WriteAttributeString("end-line", rec.endLine.ToString()); 1178writer.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());