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

◆ GetStringValue()

static string System.Xml.Linq.XContainer.GetStringValue ( object value)
inlinestaticpackageinherited

Definition at line 1100 of file XContainer.cs.

1101 {
1102 string text2;
1103 if (!(value is string text))
1104 {
1105 if (!(value is int num))
1106 {
1107 if (!(value is double num2))
1108 {
1109 if (!(value is long num3))
1110 {
1111 if (!(value is float num4))
1112 {
1113 if (!(value is decimal num5))
1114 {
1115 if (!(value is short num6))
1116 {
1117 if (!(value is sbyte b))
1118 {
1119 if (!(value is bool flag))
1120 {
1121 if (!(value is DateTime dateTime))
1122 {
1123 if (!(value is DateTimeOffset dateTimeOffset))
1124 {
1125 if (!(value is TimeSpan timeSpan))
1126 {
1127 if (value is XObject)
1128 {
1130 }
1131 text2 = value.ToString();
1132 }
1133 else
1134 {
1135 text2 = XmlConvert.ToString(timeSpan);
1136 }
1137 }
1138 else
1139 {
1140 text2 = XmlConvert.ToString(dateTimeOffset);
1141 }
1142 }
1143 else
1144 {
1145 text2 = XmlConvert.ToString(dateTime, XmlDateTimeSerializationMode.RoundtripKind);
1146 }
1147 }
1148 else
1149 {
1150 text2 = XmlConvert.ToString(flag);
1151 }
1152 }
1153 else
1154 {
1155 text2 = XmlConvert.ToString(b);
1156 }
1157 }
1158 else
1159 {
1160 text2 = XmlConvert.ToString(num6);
1161 }
1162 }
1163 else
1164 {
1165 text2 = XmlConvert.ToString(num5);
1166 }
1167 }
1168 else
1169 {
1170 text2 = XmlConvert.ToString(num4);
1171 }
1172 }
1173 else
1174 {
1175 text2 = XmlConvert.ToString(num3);
1176 }
1177 }
1178 else
1179 {
1180 text2 = XmlConvert.ToString(num2);
1181 }
1182 }
1183 else
1184 {
1185 text2 = XmlConvert.ToString(num);
1186 }
1187 }
1188 else
1189 {
1190 text2 = text;
1191 }
1192 string text3 = text2;
1193 if (text3 == null)
1194 {
1196 }
1197 return text3;
1198 }
static string Argument_XObjectValue
Definition SR.cs:36
static string Argument_ConvertToString
Definition SR.cs:20
Definition SR.cs:7

References System.SR.Argument_ConvertToString, System.SR.Argument_XObjectValue, System.Xml.ArgumentException, System.Xml.Dictionary, System.text, System.Xml.XmlConvert.ToString(), and System.value.

Referenced by System.Xml.Linq.XAttribute.XAttribute(), System.Xml.Linq.XContainer.Add(), System.Xml.Linq.Inserter.AddContent(), System.Xml.Linq.XContainer.AddContentSkipNotify(), System.Xml.Linq.XElement.SetAttributeValue(), System.Xml.Linq.XElement.SetElementValue(), System.Xml.Linq.XAttribute.SetValue(), System.Xml.Linq.XElement.SetValue(), and System.Xml.Linq.StreamingElementWriter.Write().