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

◆ ReadContentAsString() [4/4]

virtual string System.Xml.XmlDictionaryReader.ReadContentAsString ( XmlDictionaryString[] strings,
out int index )
inlinevirtualinherited

Definition at line 1031 of file XmlDictionaryReader.cs.

1032 {
1033 if (strings == null)
1034 {
1036 }
1037 string text = ReadContentAsString();
1038 index = -1;
1039 for (int i = 0; i < strings.Length; i++)
1040 {
1041 XmlDictionaryString xmlDictionaryString = strings[i];
1042 if (xmlDictionaryString == null)
1043 {
1045 }
1046 if (xmlDictionaryString.Value == text)
1047 {
1048 index = i;
1049 return xmlDictionaryString.Value;
1050 }
1051 }
1052 return text;
1053 }

References System.Xml.Dictionary, System.index, System.Xml.XmlDictionaryReader.ReadContentAsString(), System.text, and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull().