Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Datatype_integer.cs
Go to the documentation of this file.
1namespace System.Xml.Schema;
2
4{
5 public override XmlTypeCode TypeCode => XmlTypeCode.Integer;
6
7 internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
8 {
9 typedValue = null;
11 if (ex == null)
12 {
13 ex = XmlConvert.TryToInteger(s, out var result);
14 if (ex == null)
15 {
16 ex = FacetsChecker.CheckValueFacets(result, this);
17 if (ex == null)
18 {
19 typedValue = result;
20 return null;
21 }
22 }
23 }
24 return ex;
25 }
26}
override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
virtual Exception CheckLexicalFacets(ref string parseString, XmlSchemaDatatype datatype)
virtual Exception CheckValueFacets(object value, XmlSchemaDatatype datatype)
static Exception TryToInteger(string s, out decimal result)
TypeCode
Definition TypeCode.cs:4