134 references to WriteState
netstandard (1)
netstandard.cs (1)
2453[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.WriteState))]
System.Data.Common (3)
System\Data\DataSet.cs (1)
2045writer.WriteState == WriteState.Element)
System\Data\xmlsaver.cs (2)
1147if (_schFormat == SchemaFormat.WebServiceSkipSchema && xw.WriteState == WriteState.Element) 3262public override WriteState WriteState
System.Private.DataContractSerialization (76)
System\Runtime\Serialization\Json\XmlJsonWriter.cs (14)
82private WriteState _writeState; 129public override WriteState WriteState 133if (_writeState == WriteState.Closed) 135return WriteState.Closed; 139return WriteState.Attribute; 144return WriteState.Start; 146return WriteState.Element; 150return WriteState.Content; 152return WriteState.Error; 169private bool IsClosed => (WriteState == WriteState.Closed); 196_writeState = WriteState.Closed; 664if (WriteState != WriteState.Start) 821if (WriteState != WriteState.Start) 1167_writeState = WriteState.Start;
System\Runtime\Serialization\XmlObjectSerializer.cs (1)
188if (writer.WriteState != WriteState.Element)
System\Runtime\Serialization\XmlSerializableWriter.cs (3)
33if (WriteState == WriteState.Start) 39if (WriteState == WriteState.Start) 93public override WriteState WriteState { get { return _xmlWriter.WriteState; } }
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
252internal WriteState WriteState
System\Xml\XmlBaseWriter.cs (54)
26private WriteState _writeState; 44_writeState = WriteState.Start; 53_writeState = WriteState.Start; 91AutoComplete(WriteState.Closed); 114get { return _writeState == WriteState.Closed; } 139public override WriteState WriteState 154if (_writeState != WriteState.Element) 178if (_writeState != WriteState.Element) 200if (_writeState == WriteState.Attribute) 206if (_writeState != WriteState.Element) 284_writeState = WriteState.Attribute; 310if (_writeState != WriteState.Attribute) 360_writeState = WriteState.Element; 369if (_writeState != WriteState.Attribute) 424_writeState = WriteState.Element; 433if (_writeState == WriteState.Attribute) 456if (_writeState == WriteState.Attribute) 459if (_writeState != WriteState.Element && _writeState != WriteState.Content) 462AutoComplete(WriteState.Content); 471if (_writeState == WriteState.Attribute) 500if (_writeState == WriteState.Attribute) 504AutoComplete(WriteState.Element); 541if (_writeState == WriteState.Attribute) 554await AutoCompleteAsync(WriteState.Element).ConfigureAwait(false); 611if (_writeState == WriteState.Attribute) 615if (_writeState == WriteState.Element) 627_writeState = WriteState.Content; 643if (_writeState == WriteState.Attribute) 647if (_writeState == WriteState.Element) 659_writeState = WriteState.Content; 696if (_writeState == WriteState.Element) 698AutoComplete(WriteState.Content); 704return _writeState == WriteState.Element ? AutoCompleteAsync(WriteState.Content) : Task.CompletedTask; 773private void AutoComplete(WriteState writeState) 775if (_writeState == WriteState.Element) 782private async Task AutoCompleteAsync(WriteState writeState) 784if (_writeState == WriteState.Element) 818if (_writeState != WriteState.Attribute) 868if (_writeState != WriteState.Start) 871_writeState = WriteState.Prolog; 893if (_writeState != WriteState.Start) 904if (_writeState == WriteState.Attribute) 920if (_writeState == WriteState.Start || _writeState == WriteState.Prolog) 924_writeState = WriteState.Start; 1631if (WriteState == WriteState.Attribute) 1683if (WriteState == WriteState.Attribute) 1718if (WriteState == WriteState.Attribute) 1820if (_writeState == WriteState.Attribute) 1822AutoComplete(WriteState.Content); 1827if (_writeState != WriteState.Element && _writeState != WriteState.Attribute)
System\Xml\XmlDictionaryAsyncCheckWriter.cs (1)
58public override WriteState WriteState
System\Xml\XmlDictionaryWriter.cs (2)
620if (disposing && WriteState != WriteState.Closed) 779public override WriteState WriteState
System.Private.Xml (51)
System\Xml\Core\QueryOutputWriterV1.cs (4)
98public override WriteState WriteState 144WriteState ws = _wrapped.WriteState; 145if (ws == WriteState.Start || ws == WriteState.Prolog)
System\Xml\Core\XmlAsyncCheckWriter.cs (1)
191public override WriteState WriteState
System\Xml\Core\XmlCharCheckingWriter.cs (2)
249if (_replaceNewLines && WriteState != WriteState.Attribute) 276if (_replaceNewLines && WriteState != WriteState.Attribute)
System\Xml\Core\XmlCharCheckingWriterAsync.cs (2)
196if (_replaceNewLines && WriteState != WriteState.Attribute) 223if (_replaceNewLines && WriteState != WriteState.Attribute)
System\Xml\Core\XmlRawWriter.cs (2)
102public override WriteState WriteState 313internal virtual void Close(WriteState currentState)
System\Xml\Core\XmlRawWriterAsync.cs (1)
227internal virtual ValueTask DisposeAsyncCore(WriteState currentState)
System\Xml\Core\XmlTextWriter.cs (9)
984public override WriteState WriteState 991return WriteState.Start; 994return WriteState.Prolog; 996return WriteState.Element; 999return WriteState.Attribute; 1002return WriteState.Content; 1004return WriteState.Error; 1006return WriteState.Closed; 1009return WriteState.Error;
System\Xml\Core\XmlWellFormedWriter.cs (20)
177private static readonly WriteState[] s_state2WriteState = { 178WriteState.Start, // State.Start 179WriteState.Prolog, // State.TopLevel 180WriteState.Prolog, // State.Document 181WriteState.Element, // State.Element 182WriteState.Content, // State.Content 183WriteState.Content, // State.B64Content 184WriteState.Attribute, // State.B64Attribute 185WriteState.Content, // State.AfterRootEle 186WriteState.Attribute, // State.Attribute 187WriteState.Attribute, // State.SpecialAttr 188WriteState.Content, // State.EndDocument 189WriteState.Attribute, // State.RootLevelAttr 190WriteState.Attribute, // State.RootLevelSpecAttr 191WriteState.Attribute, // State.RootLevelB64Attr 192WriteState.Attribute, // State.AfterRootLevelAttr 193WriteState.Closed, // State.Closed 194WriteState.Error, // State.Error 288public override WriteState WriteState 299return WriteState.Error;
System\Xml\Core\XmlWrappingWriter.cs (1)
31public override WriteState WriteState { get { return writer.WriteState; } }
System\Xml\Core\XmlWriter.cs (2)
191public abstract WriteState WriteState { get; } 581if (disposing && WriteState != WriteState.Closed)
System\Xml\Core\XmlWriterAsync.cs (1)
586if (WriteState != WriteState.Closed)
System\Xml\Dom\DocumentXmlWriter.cs (2)
361internal override void Close(WriteState currentState) 363if (currentState == WriteState.Error)
System\Xml\Dom\XmlDocument.cs (1)
1438if (w.WriteState == WriteState.Start)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1047if (_w.WriteState == WriteState.Start)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
366public override WriteState WriteState
System\Xml\Xsl\XmlILCommand.cs (1)
60wellFormedWriter.WriteState == WriteState.Start &&
System.Private.Xml.Linq (1)
System\Xml\Linq\XNodeBuilder.cs (1)
32public override WriteState WriteState
System.Xml (1)
System.Xml.cs (1)
177[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.WriteState))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
118[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.WriteState))]