Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteStartDocumentImplAsync()

async Task System.Xml.XmlWellFormedWriter.WriteStartDocumentImplAsync ( XmlStandalone standalone)
inlineprivate

Definition at line 4179 of file XmlWellFormedWriter.cs.

4180 {
4181 _ = 2;
4182 try
4183 {
4185 if (_conformanceLevel == ConformanceLevel.Auto)
4186 {
4187 _conformanceLevel = ConformanceLevel.Document;
4189 }
4190 else if (_conformanceLevel == ConformanceLevel.Fragment)
4191 {
4193 }
4194 if (_rawWriter != null)
4195 {
4196 if (!_xmlDeclFollows)
4197 {
4199 }
4200 }
4201 else
4202 {
4204 }
4205 }
4206 catch
4207 {
4208 _currentState = State.Error;
4209 throw;
4210 }
4211 }
static string Xml_CannotStartDocumentOnFragment
Definition SR.cs:166
Definition SR.cs:7
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226
virtual Task WriteXmlDeclarationAsync(XmlStandalone standalone)
static readonly State[] s_stateTableDocument
virtual Task WriteStartDocumentAsync()
Definition XmlWriter.cs:576

References System.Xml.XmlWellFormedWriter._conformanceLevel, System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter._rawWriter, System.Xml.XmlWellFormedWriter._stateTable, System.Xml.XmlWellFormedWriter._writer, System.Xml.XmlWellFormedWriter._xmlDeclFollows, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Xml.XmlWellFormedWriter.s_stateTableDocument, System.Xml.XmlWriter.WriteStartDocumentAsync(), System.Xml.XmlRawWriter.WriteXmlDeclarationAsync(), and System.SR.Xml_CannotStartDocumentOnFragment.

Referenced by System.Xml.XmlWellFormedWriter.WriteStartDocumentAsync(), and System.Xml.XmlWellFormedWriter.WriteStartDocumentAsync().