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

◆ Get() [1/2]

static XName System.Xml.Linq.XName.Get ( string expandedName)
inlinestatic

Definition at line 36 of file XName.cs.

37 {
38 if (expandedName == null)
39 {
40 throw new ArgumentNullException("expandedName");
41 }
42 if (expandedName.Length == 0)
43 {
45 }
46 if (expandedName[0] == '{')
47 {
48 int num = expandedName.LastIndexOf('}');
49 if (num <= 1 || num == expandedName.Length - 1)
50 {
52 }
53 return XNamespace.Get(expandedName, 1, num - 1).GetName(expandedName, num + 1, expandedName.Length - num - 1);
54 }
55 return XNamespace.None.GetName(expandedName);
56 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_InvalidExpandedName
Definition SR.cs:22
Definition SR.cs:7

References System.SR.Argument_InvalidExpandedName, System.Xml.ArgumentException, System.Xml.Dictionary, System.SR.Format(), System.Xml.Linq.XNamespace.Get(), and System.Xml.Linq.XNamespace.None.

Referenced by System.Xml.Linq.XName.operator XName?().