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

◆ ConstructBaseURI()

string System.Xml.XmlEntityReference.ConstructBaseURI ( string baseURI,
string systemId )
inlineprivate

Definition at line 139 of file XmlEntityReference.cs.

140 {
141 if (baseURI == null)
142 {
143 return systemId;
144 }
145 int num = baseURI.LastIndexOf('/') + 1;
146 string text = baseURI;
147 if (num > 0 && num < baseURI.Length)
148 {
149 text = baseURI.Substring(0, num);
150 }
151 else if (num == 0)
152 {
153 text += "\\";
154 }
155 return text + systemId.Replace('\\', '/');
156 }

References System.text.