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

◆ AppendLineInfoMessage()

static string System.Xml.Xsl.XslLoadException.AppendLineInfoMessage ( string message,
ISourceLineInfo lineInfo )
inlinestaticprivateinherited

Definition at line 108 of file XslLoadException.cs.

109 {
110 if (lineInfo != null)
111 {
112 string fileName = SourceLineInfo.GetFileName(lineInfo.Uri);
113 string text = XslTransformException.CreateMessage(System.SR.Xml_ErrorFilePosition, fileName, lineInfo.Start.Line.ToString(CultureInfo.InvariantCulture), lineInfo.Start.Pos.ToString(CultureInfo.InvariantCulture));
114 if (text != null && text.Length > 0)
115 {
116 if (message.Length > 0 && !XmlCharType.IsWhiteSpace(message[message.Length - 1]))
117 {
118 message += " ";
119 }
120 message += text;
121 }
122 }
123 return message;
124 }
static CultureInfo InvariantCulture
static string Xml_ErrorFilePosition
Definition SR.cs:20
Definition SR.cs:7
XslTransformException(Exception inner, string res, params string[] args)

References System.Xml.Xsl.XslTransformException.CreateMessage(), System.Xml.Dictionary, System.Xml.Xsl.SourceLineInfo.GetFileName(), System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlCharType.IsWhiteSpace(), System.Xml.Xsl.Location.Line, System.Xml.Xsl.Location.Pos, System.Xml.Xsl.ISourceLineInfo.Start, System.text, System.Xml.Xsl.ISourceLineInfo.Uri, and System.SR.Xml_ErrorFilePosition.

Referenced by System.Xml.Xsl.XslLoadException.CreateMessage(), and System.Xml.Xsl.XslLoadException.FormatDetailedMessage().