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

◆ WriteStartAttributeAsync() [1/2]

override Task System.Xml.XmlWellFormedWriter.WriteStartAttributeAsync ( string prefix,
string localName,
string namespaceName )
inlinepackage

Definition at line 3405 of file XmlWellFormedWriter.cs.

3406 {
3407 try
3408 {
3409 if (localName == null || localName.Length == 0)
3410 {
3411 if (!(prefix == "xmlns"))
3412 {
3414 }
3415 localName = "xmlns";
3416 prefix = string.Empty;
3417 }
3418 CheckNCName(localName);
3419 Task task = AdvanceStateAsync(Token.StartAttribute);
3420 if (task.IsSuccess())
3421 {
3423 }
3425 }
3426 catch
3427 {
3428 _currentState = State.Error;
3429 throw;
3430 }
3431 }
static string Xml_EmptyLocalName
Definition SR.cs:294
Definition SR.cs:7
Task WriteStartAttributeAsync_NoAdvanceState(string prefix, string localName, string namespaceName)

References System.Xml.XmlWellFormedWriter._currentState, System.Xml.XmlWellFormedWriter.AdvanceStateAsync(), System.Xml.ArgumentException, System.Xml.XmlWellFormedWriter.CheckNCName(), System.prefix, System.task, System.Xml.XmlWellFormedWriter.WriteStartAttributeAsync_NoAdvanceState(), and System.SR.Xml_EmptyLocalName.