Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Datatype_QNameXdr.cs
Go to the documentation of this file.
1namespace System.Xml.Schema;
2
4{
5 private static readonly Type s_atomicValueType = typeof(XmlQualifiedName);
6
7 private static readonly Type s_listValueType = typeof(XmlQualifiedName[]);
8
10
11 public override Type ValueType => s_atomicValueType;
12
13 internal override Type ListValueType => s_listValueType;
14
16 {
17 if (s == null || s.Length == 0)
18 {
19 throw new XmlSchemaException(System.SR.Sch_EmptyAttributeValue, string.Empty);
20 }
21 if (nsmgr == null)
22 {
23 throw new ArgumentNullException("nsmgr");
24 }
25 try
26 {
27 string prefix;
28 return XmlQualifiedName.Parse(s.Trim(), nsmgr, out prefix);
29 }
30 catch (XmlSchemaException)
31 {
32 throw;
33 }
35 {
37 }
38 }
39}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Sch_InvalidValue
Definition SR.cs:484
static string Sch_EmptyAttributeValue
Definition SR.cs:570
Definition SR.cs:7
override XmlTokenizedType TokenizedType
override object ParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr)
static XmlQualifiedName Parse(string s, IXmlNamespaceResolver nsmgr, out string prefix)