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

◆ ValueAsBoolean

override bool System.Xml.XPath.XPathNavigator.ValueAsBoolean
getinherited

Definition at line 204 of file XPathNavigator.cs.

205 {
206 get
207 {
208 IXmlSchemaInfo schemaInfo = SchemaInfo;
209 if (schemaInfo != null)
210 {
211 if (schemaInfo.Validity == XmlSchemaValidity.Valid)
212 {
214 if (xmlSchemaType == null)
215 {
216 xmlSchemaType = schemaInfo.SchemaType;
217 }
218 if (xmlSchemaType != null)
219 {
220 return xmlSchemaType.ValueConverter.ToBoolean(Value);
221 }
222 }
223 else
224 {
226 if (xmlSchemaType != null)
227 {
228 XmlSchemaDatatype datatype = xmlSchemaType.Datatype;
229 if (datatype != null)
230 {
231 return xmlSchemaType.ValueConverter.ToBoolean(datatype.ParseValue(Value, NameTable, this));
232 }
233 }
234 }
235 }
236 return XmlUntypedConverter.Untyped.ToBoolean(Value);
237 }
238 }
object ParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr)
static readonly XmlValueConverter Untyped
virtual ? IXmlSchemaInfo SchemaInfo
XmlSchemaSimpleType? MemberType