terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
XAttribute.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml.Linq
5{
6 // Token: 0x02000003 RID: 3
7 public class XAttribute : XObject
8 {
9 // Token: 0x06000002 RID: 2 RVA: 0x00002070 File Offset: 0x00000270
10 public XAttribute(XName name, object value)
11 {
12 do
13 {
14 base..ctor();
15 if (name == null)
16 {
17 return;
18 }
19 }
20 while (value == null);
21 string stringValue = XContainer.GetStringValue(value);
22 XAttribute.ValidateAttribute(name, stringValue);
24 this.value = stringValue;
25 }
26
27 // Token: 0x06000003 RID: 3 RVA: 0x000020A8 File Offset: 0x000002A8
29 {
30 do
31 {
32 base..ctor();
33 }
34 while (other == null);
35 }
36
37 // Token: 0x17000001 RID: 1
38 // (get) Token: 0x06000004 RID: 4 RVA: 0x000020C0 File Offset: 0x000002C0
40 {
41 get
42 {
43 if (this.name._ns._namespaceName._stringLength != 0)
44 {
45 return "xmlns" != null;
46 }
47 return "xmlns" == "xmlns";
48 }
49 }
50
51 // Token: 0x17000002 RID: 2
52 // (get) Token: 0x06000005 RID: 5 RVA: 0x000020FC File Offset: 0x000002FC
53 public XName Name
54 {
55 get
56 {
57 return this.name;
58 }
59 }
60
61 // Token: 0x17000003 RID: 3
62 // (get) Token: 0x06000006 RID: 6 RVA: 0x00002110 File Offset: 0x00000310
63 public override XmlNodeType NodeType
64 {
65 get
66 {
67 return XmlNodeType.Attribute;
68 }
69 }
70
71 // Token: 0x17000004 RID: 4
72 // (get) Token: 0x06000007 RID: 7 RVA: 0x00002120 File Offset: 0x00000320
73 // (set) Token: 0x06000008 RID: 8 RVA: 0x00002134 File Offset: 0x00000334
74 public string Value
75 {
76 get
77 {
78 return this.value;
79 }
80 set
81 {
82 while (value == null)
83 {
84 }
86 if (!true)
87 {
88 }
90 if (!true)
91 {
92 }
93 }
94 }
95
96 // Token: 0x06000009 RID: 9 RVA: 0x00002160 File Offset: 0x00000360
97 public override string ToString()
98 {
99 if (!true)
100 {
101 }
103 XNamespace ns = this.name._ns;
104 string prefixOfNamespace = this.GetPrefixOfNamespace(ns);
105 XName xname = this.name;
106 string text = this.value;
107 XNamespace ns2 = xname._ns;
108 string localName = xname._localName;
112 long num = 0L;
113 if (xmlWriter == null || ns2 != null)
114 {
115 }
116 if (num != 0L)
117 {
118 throw new OutOfMemoryException();
119 }
120 long num2 = 0L;
121 if (ns2 != null)
122 {
123 }
124 if (num2 == 0L)
125 {
126 string text2;
127 return text2;
128 }
129 throw new OutOfMemoryException();
130 }
131
132 // Token: 0x0600000A RID: 10 RVA: 0x00002240 File Offset: 0x00000440
134 {
135 if (ns._namespaceName._stringLength != 0 && this.parent != null)
136 {
137 string text;
138 return text;
139 }
140 throw new InvalidCastException();
141 }
142
143 // Token: 0x0600000B RID: 11 RVA: 0x0000226C File Offset: 0x0000046C
144 private static void ValidateAttribute(XName name, string value)
145 {
146 if (name._ns._namespaceName._stringLength == 0)
147 {
148 bool flag = name._localName == "xmlns";
149 bool flag2 = value == "http://www.w3.org/XML/1998/namespace";
150 return;
151 }
152 }
153
154 // Token: 0x04000001 RID: 1
155 internal XAttribute next;
156
157 // Token: 0x04000002 RID: 2
158 internal XName name;
159
160 // Token: 0x04000003 RID: 3
161 internal string value;
162 }
163}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
XAttribute(XAttribute other)
Definition XAttribute.cs:28
XAttribute(XName name, object value)
Definition XAttribute.cs:10
override XmlNodeType NodeType
Definition XAttribute.cs:64
string GetPrefixOfNamespace(XNamespace ns)
override string ToString()
Definition XAttribute.cs:97
static void ValidateAttribute(XName name, string value)
static string GetStringValue(object value)
XNamespace _ns
Definition XName.cs:123
void WriteAttributeString(string prefix, string localName, string ns, string value)
Definition XmlWriter.cs:31