57 instantiations of XmlWriterSettings
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
23private static readonly XmlWriterSettings s_xmlWriterSettings = new() { ConformanceLevel = ConformanceLevel.Fragment };
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
67var settings = new XmlWriterSettings
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
67var settings = new XmlWriterSettings
Extensibility.MessageEncoder.IntegrationTests (1)
CustomTextMessageEncoder.cs (1)
24_writerSettings = new XmlWriterSettings();
illink (3)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
41 XmlWriterSettings xws = new XmlWriterSettings {
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
420using (var writer = XmlWriter.Create(memory, new XmlWriterSettings { Encoding = Encoding.UTF8 }))
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
FormattingUtilities.cs (1)
39return new XmlWriterSettings
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerOutputFormatterTest.cs (2)
253new XmlWriterSettings 640new XmlWriterSettings(),
XmlSerializerOutputFormatterTest.cs (2)
249new System.Xml.XmlWriterSettings 457new XmlWriterSettings(),
Microsoft.Build (1)
Construction\Solution\SolutionProjectGenerator.cs (1)
260var settings = new XmlWriterSettings
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
625var writerSettings = new XmlWriterSettings
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertXml.cs (1)
69var ws = new XmlWriterSettings()
Microsoft.DotNet.XliffTasks (1)
Model\XDocumentExtensions.cs (1)
18XmlWriterSettings settings = new()
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
39using (var writer = XmlWriter.Create(ManifestStream, new XmlWriterSettings { CloseOutput = false }))
Microsoft.Maui.Resizetizer (1)
GenerateSplashAndroidResources.cs (1)
60 static readonly XmlWriterSettings Settings = new XmlWriterSettings { Indent = true };
ReachFramework (1)
PrintConfig\PrintCapabilitesWriter.cs (1)
29XmlWriterSettings settings = new XmlWriterSettings();
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1130private static readonly XmlWriterSettings s_xmlWriterSettings = new XmlWriterSettings
System.Data.Common (2)
System\Data\SQLTypes\SqlXml.cs (2)
142XmlWriterSettings writerSettings = new XmlWriterSettings(); 179XmlWriterSettings writerSettings = new XmlWriterSettings();
System.IO.Packaging (3)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
467using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 }))
System\IO\Packaging\PartBasedPackageProperties.cs (1)
687_xmlWriter = XmlWriter.Create(writerStream, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 });
System\IO\Packaging\ZipPackage.cs (1)
911using (XmlWriter writer = XmlWriter.Create(s, new XmlWriterSettings { Encoding = System.Text.Encoding.UTF8 }))
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
344XmlWriterSettings writerSettings = new XmlWriterSettings();
System.Private.Xml (15)
System\Xml\Core\XmlAsyncCheckWriter.cs (1)
49settings = new XmlWriterSettings();
System\Xml\Core\XmlCharCheckingWriter.cs (1)
50s = (s != null) ? (XmlWriterSettings)s.Clone() : new XmlWriterSettings();
System\Xml\Core\XmlEncodedRawTextWriter.cs (1)
192XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Core\XmlUtf8RawTextWriter.cs (1)
139XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Core\XmlWriter.cs (1)
622var settings = new XmlWriterSettings { CloseOutput = true };
System\Xml\Core\XmlWriterSettings.cs (1)
43internal static readonly XmlWriterSettings s_defaultWriterSettings = new() { ReadOnly = true };
System\Xml\Dom\DocumentXmlWriter.cs (1)
76_settings = new XmlWriterSettings();
System\Xml\Serialization\XmlSchemas.cs (1)
576XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Serialization\XmlSerializer.cs (1)
143private static readonly XmlWriterSettings s_writerSettings = new XmlWriterSettings() { Encoding = new UTF8Encoding(false), Indent = true };
System\Xml\XPath\XPathNavigator.cs (2)
1346writerSettings = new XmlWriterSettings(); 1385writerSettings = new XmlWriterSettings();
System\Xml\Xsl\QIL\QilExpression.cs (1)
38XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
89_defaultWriterSettings = new XmlWriterSettings(dataReader);
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
253XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Xsl\Xslt\Compiler.cs (1)
425Settings = new XmlWriterSettings();
System.Private.Xml.Linq (6)
System\Xml\Linq\XAttribute.cs (1)
214XmlWriterSettings ws = new XmlWriterSettings();
System\Xml\Linq\XContainer.cs (1)
244XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Linq\XNode.cs (2)
686XmlWriterSettings ws = new XmlWriterSettings(); 696XmlWriterSettings ws = new XmlWriterSettings();
System\Xml\Linq\XNodeBuilder.cs (1)
26XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Linq\XStreamingElement.cs (1)
230XmlWriterSettings ws = new XmlWriterSettings();
System.Xaml (7)
System\Xaml\XamlObjectReader.cs (1)
591var writerSettings = new XmlWriterSettings
System\Xaml\XamlServices.cs (4)
131using (var xw = XmlWriter.Create(sw, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 148using (var writer = XmlWriter.Create(fileName, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 158using (var writer = XmlWriter.Create(stream, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true })) 168using (var xmlWriter = XmlWriter.Create(writer, new XmlWriterSettings { Indent = true, OmitXmlDeclaration = true }))
System\Xaml\XamlXmlWriter.cs (2)
57InitializeXamlXmlWriter(XmlWriter.Create(stream, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings); 76InitializeXamlXmlWriter(XmlWriter.Create(textWriter, new XmlWriterSettings { CloseOutput = true }), schemaContext, settings);
xunit.console (1)
Utility\TransformFactory.cs (1)
74using (var writer = XmlWriter.Create(outputFileName, new XmlWriterSettings { Indent = true }))
168 references to XmlWriterSettings
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
23private static readonly XmlWriterSettings s_xmlWriterSettings = new() { ConformanceLevel = ConformanceLevel.Fragment };
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
67var settings = new XmlWriterSettings
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
67var settings = new XmlWriterSettings
Extensibility.MessageEncoder.IntegrationTests (1)
CustomTextMessageEncoder.cs (1)
17private XmlWriterSettings _writerSettings;
illink (2)
ILLink.Tasks (1)
CombineLinkerXmlFiles.cs (1)
41 XmlWriterSettings xws = new XmlWriterSettings {
Microsoft.AspNetCore.Mvc.Formatters.Xml (26)
FormattingUtilities.cs (2)
36/// <returns>Default <see cref="XmlWriterSettings"/></returns> 37public static XmlWriterSettings GetDefaultXmlWriterSettings()
XmlDataContractSerializerOutputFormatter.cs (12)
33/// with default <see cref="XmlWriterSettings"/>. 42/// with default <see cref="XmlWriterSettings"/>. 54public XmlDataContractSerializerOutputFormatter(XmlWriterSettings writerSettings) 64public XmlDataContractSerializerOutputFormatter(XmlWriterSettings writerSettings, ILoggerFactory loggerFactory) 97public XmlWriterSettings WriterSettings { get; } 170/// <see cref="XmlWriterSettings"/>. 176/// The <see cref="XmlWriterSettings"/>. 181XmlWriterSettings xmlWriterSettings) 194/// <see cref="XmlWriterSettings"/>. 201/// The <see cref="XmlWriterSettings"/>. 207XmlWriterSettings xmlWriterSettings) 218var writerSettings = WriterSettings.Clone();
XmlSerializerOutputFormatter.cs (12)
32/// with default <see cref="XmlWriterSettings"/>. 41/// with default <see cref="XmlWriterSettings"/>. 53public XmlSerializerOutputFormatter(XmlWriterSettings writerSettings) 63public XmlSerializerOutputFormatter(XmlWriterSettings writerSettings, ILoggerFactory loggerFactory) 94public XmlWriterSettings WriterSettings { get; } 149/// <see cref="XmlWriterSettings"/>. 155/// The <see cref="XmlWriterSettings"/>. 160XmlWriterSettings xmlWriterSettings) 173/// <see cref="XmlWriterSettings"/>. 180/// The <see cref="XmlWriterSettings"/>. 186XmlWriterSettings xmlWriterSettings) 197var writerSettings = WriterSettings.Clone();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
XmlDataContractSerializerOutputFormatterTest.cs (3)
144var writerSettings = formatter.WriterSettings; 157var writerSettings = FormattingUtilities.GetDefaultXmlWriterSettings(); 829XmlWriterSettings xmlWriterSettings)
XmlSerializerOutputFormatterTest.cs (3)
150var writerSettings = formatter.WriterSettings; 161var writerSettings = FormattingUtilities.GetDefaultXmlWriterSettings(); 619XmlWriterSettings xmlWriterSettings)
Microsoft.Build (1)
Construction\Solution\SolutionProjectGenerator.cs (1)
260var settings = new XmlWriterSettings
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
625var writerSettings = new XmlWriterSettings
Microsoft.CodeAnalysis.Test.Utilities (1)
Assert\AssertXml.cs (1)
69var ws = new XmlWriterSettings()
Microsoft.DotNet.XliffTasks (1)
Model\XDocumentExtensions.cs (1)
18XmlWriterSettings settings = new()
Microsoft.Maui.Resizetizer (1)
GenerateSplashAndroidResources.cs (1)
60 static readonly XmlWriterSettings Settings = new XmlWriterSettings { Indent = true };
netstandard (1)
netstandard.cs (1)
2510[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriterSettings))]
ReachFramework (1)
PrintConfig\PrintCapabilitesWriter.cs (1)
29XmlWriterSettings settings = new XmlWriterSettings();
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1130private static readonly XmlWriterSettings s_xmlWriterSettings = new XmlWriterSettings
System.Data.Common (2)
System\Data\SQLTypes\SqlXml.cs (2)
142XmlWriterSettings writerSettings = new XmlWriterSettings(); 179XmlWriterSettings writerSettings = new XmlWriterSettings();
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
121public override XmlWriterSettings? Settings
System\Runtime\Serialization\SchemaExporter.cs (1)
344XmlWriterSettings writerSettings = new XmlWriterSettings();
System\Xml\XmlDictionaryAsyncCheckWriter.cs (1)
49public override XmlWriterSettings? Settings
System.Private.Xml (92)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (6)
27public HtmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 32public HtmlEncodedRawTextWriter(Stream stream, XmlWriterSettings settings) : base(stream, settings) 438private void Init(XmlWriterSettings settings) 790public HtmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 795public HtmlEncodedRawTextWriterIndent(Stream stream, XmlWriterSettings settings) : base(stream, settings) 932private void Init(XmlWriterSettings settings)
System\Xml\Core\HtmlUtf8RawTextWriter.cs (4)
27public HtmlUtf8RawTextWriter(Stream stream, XmlWriterSettings settings) : base(stream, settings) 415private void Init(XmlWriterSettings settings) 767public HtmlUtf8RawTextWriterIndent(Stream stream, XmlWriterSettings settings) : base(stream, settings) 902private void Init(XmlWriterSettings settings)
System\Xml\Core\QueryOutputWriter.cs (3)
35public QueryOutputWriter(XmlRawWriter writer, XmlWriterSettings settings) 116public override XmlWriterSettings Settings 120XmlWriterSettings settings = _wrapped.Settings!;
System\Xml\Core\QueryOutputWriterV1.cs (1)
33public QueryOutputWriterV1(XmlWriter writer, XmlWriterSettings settings)
System\Xml\Core\TextEncodedRawTextWriter.cs (2)
24public TextEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 29public TextEncodedRawTextWriter(Stream stream, XmlWriterSettings settings) : base(stream, settings)
System\Xml\Core\TextUtf8RawTextWriter.cs (1)
24public TextUtf8RawTextWriter(Stream stream, XmlWriterSettings settings) : base(stream, settings)
System\Xml\Core\XmlAsyncCheckWriter.cs (2)
37public override XmlWriterSettings Settings 41XmlWriterSettings? settings = _coreWriter.Settings;
System\Xml\Core\XmlAutoDetectWriter.cs (6)
22private readonly XmlWriterSettings _writerSettings; 31private XmlAutoDetectWriter(XmlWriterSettings writerSettings) 35_writerSettings = (XmlWriterSettings)writerSettings.Clone(); 42public XmlAutoDetectWriter(TextWriter textWriter, XmlWriterSettings writerSettings) 48public XmlAutoDetectWriter(Stream strm, XmlWriterSettings writerSettings) 73public override XmlWriterSettings Settings
System\Xml\Core\XmlCharCheckingWriter.cs (3)
45public override XmlWriterSettings Settings 49XmlWriterSettings? s = base.writer.Settings; 50s = (s != null) ? (XmlWriterSettings)s.Clone() : new XmlWriterSettings();
System\Xml\Core\XmlEncodedRawTextWriter.cs (10)
90protected XmlEncodedRawTextWriter(XmlWriterSettings settings) 112public XmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : this(settings) 134public XmlEncodedRawTextWriter(Stream stream, XmlWriterSettings settings) : this(settings) 188public override XmlWriterSettings Settings 192XmlWriterSettings settings = new XmlWriterSettings(); 1922public XmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 1927public XmlEncodedRawTextWriterIndent(Stream stream, XmlWriterSettings settings) : base(stream, settings) 1935public override XmlWriterSettings Settings 1939XmlWriterSettings settings = base.Settings; 2142private void Init(XmlWriterSettings settings)
System\Xml\Core\XmlEventCache.cs (1)
313public override XmlWriterSettings? Settings
System\Xml\Core\XmlUtf8RawTextWriter.cs (8)
75protected XmlUtf8RawTextWriter(XmlWriterSettings settings) 97public XmlUtf8RawTextWriter(Stream stream, XmlWriterSettings settings) : this(settings) 135public override XmlWriterSettings Settings 139XmlWriterSettings settings = new XmlWriterSettings(); 1784public XmlUtf8RawTextWriterIndent(Stream stream, XmlWriterSettings settings) : base(stream, settings) 1792public override XmlWriterSettings Settings 1796XmlWriterSettings settings = base.Settings; 1999private void Init(XmlWriterSettings settings)
System\Xml\Core\XmlWellFormedWriter.cs (3)
238internal XmlWellFormedWriter(XmlWriter writer, XmlWriterSettings settings) 304public override XmlWriterSettings Settings 308XmlWriterSettings settings = _writer.Settings!;
System\Xml\Core\XmlWrappingWriter.cs (1)
30public override XmlWriterSettings? Settings { get { return writer.Settings; } }
System\Xml\Core\XmlWriter.cs (16)
49public virtual XmlWriterSettings? Settings => null; 622var settings = new XmlWriterSettings { CloseOutput = true }; 634public static XmlWriter Create(string outputFileName, XmlWriterSettings? settings) 636settings ??= XmlWriterSettings.s_defaultWriterSettings; 647XmlWriterSettings settings = XmlWriterSettings.s_defaultWriterSettings; 653public static XmlWriter Create(Stream output, XmlWriterSettings? settings) 655settings ??= XmlWriterSettings.s_defaultWriterSettings; 666XmlWriterSettings settings = XmlWriterSettings.s_defaultWriterSettings; 672public static XmlWriter Create(TextWriter output, XmlWriterSettings? settings) 674settings ??= XmlWriterSettings.s_defaultWriterSettings; 689public static XmlWriter Create(StringBuilder output, XmlWriterSettings? settings) 693settings ??= XmlWriterSettings.s_defaultWriterSettings; 704public static XmlWriter Create(XmlWriter output, XmlWriterSettings? settings) 706settings ??= XmlWriterSettings.s_defaultWriterSettings;
System\Xml\Core\XmlWriterSettings.cs (6)
43internal static readonly XmlWriterSettings s_defaultWriterSettings = new() { ReadOnly = true }; 238public XmlWriterSettings Clone() 240XmlWriterSettings clonedSettings = (XmlWriterSettings)MemberwiseClone(); 337XmlWriterSettings newSettings = this; 530XmlWriterSettings? baseWriterSettings = baseWriter.Settings;
System\Xml\Dom\DocumentXmlWriter.cs (2)
64private readonly XmlWriterSettings _settings; // wrapping writer settings 92public override XmlWriterSettings Settings
System\Xml\Serialization\XmlSchemas.cs (1)
576XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Serialization\XmlSerializer.cs (1)
143private static readonly XmlWriterSettings s_writerSettings = new XmlWriterSettings() { Encoding = new UTF8Encoding(false), Indent = true };
System\Xml\XPath\XPathNavigator.cs (2)
1328XmlWriterSettings writerSettings; 1380XmlWriterSettings writerSettings;
System\Xml\Xsl\QIL\QilExpression.cs (3)
38XmlWriterSettings settings = new XmlWriterSettings(); 120public XmlWriterSettings DefaultWriterSettings 122get { return (XmlWriterSettings)((QilLiteral)_defWSet).Value!; }
System\Xml\Xsl\QIL\QilTypeChecker.cs (1)
167CheckLiteralValue(node[1], typeof(XmlWriterSettings));
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (3)
25private readonly XmlWriterSettings _defaultWriterSettings; 39public XmlQueryStaticData(XmlWriterSettings defaultWriterSettings, IList<WhitespaceRule> whitespaceRules, StaticDataManager staticData) 331public XmlWriterSettings DefaultWriterSettings
System\Xml\Xsl\Runtime\XmlRawWriterWrapper.cs (1)
29public override XmlWriterSettings? Settings
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
253XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Xsl\Xslt\Compiler.cs (1)
405public XmlWriterSettings Settings;
System\Xml\Xsl\Xslt\XsltLoader.cs (2)
584XmlWriterSettings settings = output.Settings; 783XmlWriterSettings settings = output.Settings;
System\Xml\Xslt\XslCompiledTransform.cs (1)
75public XmlWriterSettings? OutputSettings { get; private set; }
System.Private.Xml.Linq (21)
System\Xml\Linq\XAttribute.cs (1)
214XmlWriterSettings ws = new XmlWriterSettings();
System\Xml\Linq\XContainer.cs (1)
244XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Linq\XDocument.cs (5)
591XmlWriterSettings ws = GetXmlWriterSettings(options); 621XmlWriterSettings ws = GetXmlWriterSettings(options); 675XmlWriterSettings ws = GetXmlWriterSettings(options); 706XmlWriterSettings ws = GetXmlWriterSettings(options); 768XmlWriterSettings ws = GetXmlWriterSettings(options);
System\Xml\Linq\XElement.cs (5)
205XmlWriterSettings ws = GetXmlWriterSettings(options); 1062XmlWriterSettings ws = GetXmlWriterSettings(options); 1082XmlWriterSettings ws = GetXmlWriterSettings(options); 1124XmlWriterSettings ws = GetXmlWriterSettings(options); 1144XmlWriterSettings ws = GetXmlWriterSettings(options);
System\Xml\Linq\XNode.cs (3)
684internal static XmlWriterSettings GetXmlWriterSettings(SaveOptions o) 686XmlWriterSettings ws = new XmlWriterSettings(); 696XmlWriterSettings ws = new XmlWriterSettings();
System\Xml\Linq\XNodeBuilder.cs (2)
22public override XmlWriterSettings Settings 26XmlWriterSettings settings = new XmlWriterSettings();
System\Xml\Linq\XStreamingElement.cs (4)
118XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 146XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 185XmlWriterSettings ws = XNode.GetXmlWriterSettings(options); 230XmlWriterSettings ws = new XmlWriterSettings();
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
591var writerSettings = new XmlWriterSettings
System.Xml (1)
System.Xml.cs (1)
239[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriterSettings))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
167[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlWriterSettings))]