4 types derived from XmlDictionaryWriter
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (1)
15internal sealed class XmlJsonWriter : XmlDictionaryWriter, IXmlJsonWriterInitializer
System\Xml\XmlBaseWriter.cs (1)
16internal abstract class XmlBaseWriter : XmlDictionaryWriter, IFragmentCapableXmlDictionaryWriter
System\Xml\XmlDictionaryAsyncCheckWriter.cs (1)
15internal sealed class XmlDictionaryAsyncCheckWriter : XmlDictionaryWriter, IXmlTextWriterInitializer
System\Xml\XmlDictionaryWriter.cs (1)
628private sealed class XmlWrappedWriter : XmlDictionaryWriter
146 references to XmlDictionaryWriter
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
47using var writer = JsonReaderWriterFactory.CreateJsonWriter(fileStream, Encoding.UTF8, ownsStream: false, indent: true);
netstandard (1)
netstandard.cs (1)
2469[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDictionaryWriter))]
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
759protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
System.Private.DataContractSerialization (64)
System\Runtime\Serialization\DataContractSerializer.cs (4)
283public override void WriteStartObject(XmlDictionaryWriter writer, object? graph) 290public override void WriteObjectContent(XmlDictionaryWriter writer, object? graph) 297public override void WriteEndObject(XmlDictionaryWriter writer) 304public void WriteObject(XmlDictionaryWriter writer, object? graph, DataContractResolver? dataContractResolver)
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
40protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, byte[] array, int offset, int count)
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (5)
282public override void WriteEndObject(XmlDictionaryWriter writer) 294XmlDictionaryWriter jsonWriter = JsonReaderWriterFactory.CreateJsonWriter(stream, Encoding.UTF8, false); // ownsStream 308public override void WriteObject(XmlDictionaryWriter writer, object? graph) 322public override void WriteObjectContent(XmlDictionaryWriter writer, object? graph) 337public override void WriteStartObject(XmlDictionaryWriter writer, object? graph)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
253protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, DateTime[] array, int offset, int count)
System\Runtime\Serialization\Json\JsonReaderWriterFactory.cs (5)
48public static XmlDictionaryWriter CreateJsonWriter(Stream stream) 53public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding) 58public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream) 63public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream, bool indent) 68public static XmlDictionaryWriter CreateJsonWriter(Stream stream, Encoding encoding, bool ownsStream, bool indent, string? indentChars)
System\Runtime\Serialization\XmlObjectSerializer.cs (10)
23public abstract void WriteStartObject(XmlDictionaryWriter writer, object? graph); 26public abstract void WriteObjectContent(XmlDictionaryWriter writer, object? graph); 29public abstract void WriteEndObject(XmlDictionaryWriter writer); 37XmlDictionaryWriter writer = XmlDictionaryWriter.CreateTextWriter(stream, Encoding.UTF8, false /*ownsStream*/); 48WriteObject(XmlDictionaryWriter.CreateDictionaryWriter(writer), graph); 57WriteStartObject(XmlDictionaryWriter.CreateDictionaryWriter(writer), graph); 66WriteObjectContent(XmlDictionaryWriter.CreateDictionaryWriter(writer), graph); 75WriteEndObject(XmlDictionaryWriter.CreateDictionaryWriter(writer)); 80public virtual void WriteObject(XmlDictionaryWriter writer, object? graph)
System\Runtime\Serialization\XmlWriterDelegator.cs (2)
14protected XmlDictionaryWriter? dictionaryWriter; 23this.dictionaryWriter = writer as XmlDictionaryWriter;
System\Xml\ArrayHelper.cs (22)
65public void WriteArray(XmlDictionaryWriter writer, string prefix, TArgument localName, TArgument namespaceUri, XmlDictionaryReader reader) 83protected abstract void WriteArray(XmlDictionaryWriter writer, string prefix, TArgument localName, TArgument namespaceUri, TArray[] array, int offset, int count); 110protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, bool[] array, int offset, int count) 125protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, bool[] array, int offset, int count) 140protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, short[] array, int offset, int count) 155protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, short[] array, int offset, int count) 170protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, int[] array, int offset, int count) 185protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, int[] array, int offset, int count) 200protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, long[] array, int offset, int count) 215protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, long[] array, int offset, int count) 230protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, float[] array, int offset, int count) 245protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, float[] array, int offset, int count) 260protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, double[] array, int offset, int count) 275protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, double[] array, int offset, int count) 290protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, decimal[] array, int offset, int count) 305protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, decimal[] array, int offset, int count) 320protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, DateTime[] array, int offset, int count) 335protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, DateTime[] array, int offset, int count) 350protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, Guid[] array, int offset, int count) 365protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, Guid[] array, int offset, int count) 380protected override void WriteArray(XmlDictionaryWriter writer, string prefix, string localName, string namespaceUri, TimeSpan[] array, int offset, int count) 395protected override void WriteArray(XmlDictionaryWriter writer, string prefix, XmlDictionaryString localName, XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count)
System\Xml\XmlDictionaryAsyncCheckWriter.cs (3)
17private readonly XmlDictionaryWriter _coreWriter; 20public XmlDictionaryAsyncCheckWriter(XmlDictionaryWriter writer) 26internal XmlDictionaryWriter CoreWriter
System\Xml\XmlDictionaryWriter.cs (11)
20public static XmlDictionaryWriter CreateBinaryWriter(Stream stream) 25public static XmlDictionaryWriter CreateBinaryWriter(Stream stream, IXmlDictionary? dictionary) 30public static XmlDictionaryWriter CreateBinaryWriter(Stream stream, IXmlDictionary? dictionary, XmlBinaryWriterSession? session) 35public static XmlDictionaryWriter CreateBinaryWriter(Stream stream, IXmlDictionary? dictionary, XmlBinaryWriterSession? session, bool ownsStream) 42public static XmlDictionaryWriter CreateTextWriter(Stream stream) 47public static XmlDictionaryWriter CreateTextWriter(Stream stream, Encoding encoding) 52public static XmlDictionaryWriter CreateTextWriter(Stream stream, Encoding encoding, bool ownsStream) 60public static XmlDictionaryWriter CreateMtomWriter(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo) 65public static XmlDictionaryWriter CreateMtomWriter(Stream stream, Encoding encoding, int maxSizeInBytes, string startInfo, string? boundary, string? startUri, bool writeMessageHeaders, bool ownsStream) 70public static XmlDictionaryWriter CreateDictionaryWriter(XmlWriter writer) 74return writer as XmlDictionaryWriter ?? new XmlWrappedWriter(writer);
System.Runtime.Serialization (1)
System.Runtime.Serialization.cs (1)
49[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDictionaryWriter))]
System.Runtime.Serialization.Xml (1)
artifacts\obj\System.Runtime.Serialization.Xml\Debug\net10.0\System.Runtime.Serialization.Xml.Forwards.cs (1)
35[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XmlDictionaryWriter))]
System.ServiceModel.Federation (9)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (4)
251var writer = XmlDictionaryWriter.CreateTextWriter(memeoryStream, Encoding.UTF8); 290var writer = XmlDictionaryWriter.CreateTextWriter(memeoryStream, Encoding.UTF8);
System\ServiceModel\Federation\WSTrustRequestBodyWriter.cs (5)
12/// Defines a <see cref="BodyWriter"/> that writes a <see cref="WsTrustRequest"/> into a <see cref="XmlDictionaryWriter"/>. 20/// <param name="trustSerializer">The <see cref="WsTrustSerializer"/> used to write the <see cref="WsTrustRequest"/> into a <see cref="XmlDictionaryWriter"/>.</param> 28/// Override of the base class method. Serializes the <see cref="WsTrustRequest"/> into the <see cref="XmlDictionaryWriter"/>. 30/// <param name="writer"> The <see cref="XmlDictionaryWriter"/> to serialize the <see cref="WsTrustRequest"/> into.</param> 31protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
System.ServiceModel.Primitives (31)
netstandard.cs (31)
641public void WriteContentsTo(System.ServiceModel.Channels.AddressingVersion addressingVersion, System.Xml.XmlDictionaryWriter writer) { } 1188protected abstract void OnWriteAddressHeaderContents(System.Xml.XmlDictionaryWriter writer); 1189protected virtual void OnWriteStartAddressHeader(System.Xml.XmlDictionaryWriter writer) { } 1191public void WriteAddressHeader(System.Xml.XmlDictionaryWriter writer) { } 1193public void WriteAddressHeaderContents(System.Xml.XmlDictionaryWriter writer) { } 1194public void WriteStartAddressHeader(System.Xml.XmlDictionaryWriter writer) { } 1297protected abstract void OnWriteBodyContents(System.Xml.XmlDictionaryWriter writer); 1298public void WriteBodyContents(System.Xml.XmlDictionaryWriter writer) { } 1556protected virtual void OnBodyToString(System.Xml.XmlDictionaryWriter writer) { } 1562protected abstract void OnWriteBodyContents(System.Xml.XmlDictionaryWriter writer); 1563protected virtual void OnWriteMessage(System.Xml.XmlDictionaryWriter writer) { } 1564protected virtual void OnWriteStartBody(System.Xml.XmlDictionaryWriter writer) { } 1565protected virtual void OnWriteStartEnvelope(System.Xml.XmlDictionaryWriter writer) { } 1566protected virtual void OnWriteStartHeaders(System.Xml.XmlDictionaryWriter writer) { } 1569public void WriteBody(System.Xml.XmlDictionaryWriter writer) { } 1571public void WriteBodyContents(System.Xml.XmlDictionaryWriter writer) { } 1572public void WriteMessage(System.Xml.XmlDictionaryWriter writer) { } 1574public void WriteStartBody(System.Xml.XmlDictionaryWriter writer) { } 1576public void WriteStartEnvelope(System.Xml.XmlDictionaryWriter writer) { } 1633protected virtual void OnWriteDetail(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.EnvelopeVersion version) { } 1634protected abstract void OnWriteDetailContents(System.Xml.XmlDictionaryWriter writer); 1635protected virtual void OnWriteStartDetail(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.EnvelopeVersion version) { } 1653protected abstract void OnWriteHeaderContents(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion); 1654protected virtual void OnWriteStartHeader(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion) { } 1656public void WriteHeader(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion) { } 1658protected void WriteHeaderAttributes(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion) { } 1659public void WriteHeaderContents(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion) { } 1660public void WriteStartHeader(System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion) { } 1711public void WriteHeader(int headerIndex, System.Xml.XmlDictionaryWriter writer) { } 1713public void WriteHeaderContents(int headerIndex, System.Xml.XmlDictionaryWriter writer) { } 1715public void WriteStartHeader(int headerIndex, System.Xml.XmlDictionaryWriter writer) { }
System.ServiceModel.Syndication (36)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (5)
173XmlDictionaryWriter extWriter = null; 747XmlDictionaryWriter extWriter = null; 860XmlDictionaryWriter extWriter = null; 959XmlDictionaryWriter extWriter = null; 1047XmlDictionaryWriter extWriter = null;
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (2)
135XmlDictionaryWriter w = XmlDictionaryWriter.CreateDictionaryWriter(writer);
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (5)
215XmlDictionaryWriter extWriter = null; 286XmlDictionaryWriter extWriter = null; 387XmlDictionaryWriter extWriter = null; 464XmlDictionaryWriter extWriter = null; 535XmlDictionaryWriter extWriter = null;
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (1)
52using (XmlDictionaryWriter writer = buffer.OpenSection(unparsedExtensionsReader.Quotas))
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (2)
345XmlDictionaryWriter extWriter = null; 664XmlDictionaryWriter extWriter = null;
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (2)
158XmlDictionaryWriter w = XmlDictionaryWriter.CreateDictionaryWriter(writer);
System\ServiceModel\Syndication\ServiceDocumentFormatter.cs (4)
37internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, CategoriesDocument categories) 45internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, ResourceCollectionInfo collection) 53internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, Workspace workspace) 61internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, ServiceDocument document)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (2)
33using (XmlDictionaryWriter writer = _buffer.OpenSection(XmlDictionaryReaderQuotas.Max)) 202using (XmlDictionaryWriter writer = _buffer.OpenSection(XmlDictionaryReaderQuotas.Max))
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (1)
208using (XmlDictionaryWriter writer = newBuffer.OpenSection(XmlDictionaryReaderQuotas.Max))
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (7)
478internal static void CloseBuffer(XmlBuffer buffer, XmlDictionaryWriter extWriter) 489internal static void CreateBufferIfRequiredAndWriteNode(ref XmlBuffer buffer, ref XmlDictionaryWriter extWriter, XmlReader reader, int maxExtensionSize) 512internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationFeed feed) 523internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationItem item) 531internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationCategory category) 539internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationLink link) 547internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationPerson person)
System\ServiceModel\Syndication\XmlSyndicationContent.cs (2)
48using (XmlDictionaryWriter writer = _contentBuffer.OpenSection(XmlDictionaryReaderQuotas.Max)) 174using (XmlDictionaryWriter writer = tmp.OpenSection(XmlDictionaryReaderQuotas.Max))
System\ServiceModel\XmlBuffer.cs (3)
17private XmlDictionaryWriter _writer; 57public XmlDictionaryWriter OpenSection(XmlDictionaryReaderQuotas quotas) 65_writer = XmlDictionaryWriter.CreateBinaryWriter(_stream, null, null, false);
UnitTests.Common (1)
TestHelpers.cs (1)
348protected override void OnWriteBodyContents(XmlDictionaryWriter writer)