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

◆ WriteComment() [1/2]

override void System.Xml.XmlBaseWriter.WriteComment ( string text)
inlineinherited

Definition at line 1123 of file XmlBaseWriter.cs.

1124 {
1125 if (IsClosed)
1126 {
1127 ThrowClosed();
1128 }
1129 if (_writeState == WriteState.Attribute)
1130 {
1132 }
1133 if (text == null)
1134 {
1135 text = string.Empty;
1136 }
1137 else if (text.IndexOf("--", StringComparison.Ordinal) != -1 || (text.Length > 0 && text[text.Length - 1] == '-'))
1138 {
1140 }
1141 StartComment();
1142 FlushBase64();
1144 EndComment();
1145 }
static string XmlInvalidCommentChars
Definition SR.cs:420
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidWriteState
Definition SR.cs:450
Definition SR.cs:7
void WriteComment(string text)

References System.Xml.XmlBaseWriter._writer, System.Xml.XmlBaseWriter._writeState, System.Xml.ArgumentException, System.Xml.XmlBaseWriter.EndComment(), System.Xml.XmlBaseWriter.FlushBase64(), System.SR.Format(), System.Xml.XmlBaseWriter.IsClosed, System.Xml.XmlBaseWriter.StartComment(), System.text, System.Xml.XmlBaseWriter.ThrowClosed(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlNodeWriter.WriteComment(), System.SR.XmlInvalidCommentChars, and System.SR.XmlInvalidWriteState.