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
NameValueCollection.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200041D RID: 1053
10 {
11 // Token: 0x06001C4C RID: 7244 RVA: 0x0004D668 File Offset: 0x0004B868
13 {
14 if (!true)
15 {
16 }
17 base..ctor();
18 }
19
20 // Token: 0x06001C4D RID: 7245 RVA: 0x0004D680 File Offset: 0x0004B880
22 {
23 if (!true)
24 {
25 }
26 base..ctor(capacity);
27 }
28
29 // Token: 0x06001C4E RID: 7246 RVA: 0x0004D698 File Offset: 0x0004B898
31 {
32 if (!true)
33 {
34 }
36 base.Reset(capacity);
37 }
38
39 // Token: 0x06001C4F RID: 7247 RVA: 0x0004D6B8 File Offset: 0x0004B8B8
41 {
42 if (!true)
43 {
44 }
45 base..ctor();
47 }
48
49 // Token: 0x06001C50 RID: 7248 RVA: 0x0004D6D8 File Offset: 0x0004B8D8
50 protected void InvalidateCachedArrays()
51 {
52 }
53
54 // Token: 0x06001C51 RID: 7249 RVA: 0x0004D6E8 File Offset: 0x0004B8E8
55 private static string GetAsOneString(ArrayList list)
56 {
57 throw new InvalidCastException();
58 }
59
60 // Token: 0x06001C52 RID: 7250 RVA: 0x0004D714 File Offset: 0x0004B914
61 private static string[] GetAsStringArray(ArrayList list)
62 {
63 }
64
65 // Token: 0x06001C53 RID: 7251 RVA: 0x0004D724 File Offset: 0x0004B924
66 public void Add(NameValueCollection c)
67 {
68 while (c == null)
69 {
70 }
71 if (c != null)
72 {
74 return;
75 }
76 }
77
78 // Token: 0x06001C54 RID: 7252 RVA: 0x0004D744 File Offset: 0x0004B944
79 public virtual void Clear()
80 {
81 while (this._readOnly)
82 {
83 }
84 base.BaseClear();
85 }
86
87 // Token: 0x06001C55 RID: 7253 RVA: 0x00002050 File Offset: 0x00000250
88 public bool HasKeys()
89 {
90 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
91 }
92
93 // Token: 0x06001C56 RID: 7254 RVA: 0x0004D760 File Offset: 0x0004B960
94 internal virtual bool InternalHasKeys()
95 {
96 /*
97An exception occurred when decompiling this method (06001C56)
98
99ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Specialized.NameValueCollection::InternalHasKeys()
100
101 ---> System.Exception: Basic block has to end with unconditional control flow.
102{
103 Block_0:
104 stloc:Hashtable(var_0_06, ldfld:Hashtable(NameObjectCollectionBase::_entriesTable, ldloc:NameValueCollection[exp:NameObjectCollectionBase](this)))
105}
106
107 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
108 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
109 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
110 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
111 --- End of inner exception stack trace ---
112 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
113 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
114*/;
115 }
116
117 // Token: 0x06001C57 RID: 7255 RVA: 0x0004D774 File Offset: 0x0004B974
118 public virtual void Add(string name, string value)
119 {
120 if (this._readOnly)
121 {
122 throw new InvalidCastException();
123 }
125 if (nameObjectEntry.Value == null)
126 {
127 if (value != null)
128 {
129 }
130 return;
131 }
132 if (value != null)
133 {
134 return;
135 }
136 }
137
138 // Token: 0x06001C58 RID: 7256 RVA: 0x0004D7A4 File Offset: 0x0004B9A4
139 public virtual string Get(string name)
140 {
142 if (nameObjectEntry == null || nameObjectEntry.Value != null)
143 {
144 }
145 string text;
146 return text;
147 }
148
149 // Token: 0x06001C59 RID: 7257 RVA: 0x0004D7C4 File Offset: 0x0004B9C4
150 public virtual string[] GetValues(string name)
151 {
153 if (nameObjectEntry == null || nameObjectEntry.Value != null)
154 {
155 }
156 string[] array;
157 return array;
158 }
159
160 // Token: 0x06001C5A RID: 7258 RVA: 0x0004D7EC File Offset: 0x0004B9EC
161 public virtual void Set(string name, string value)
162 {
163 while (this._readOnly)
164 {
165 }
166 }
167
168 // Token: 0x06001C5B RID: 7259 RVA: 0x0004D804 File Offset: 0x0004BA04
169 public virtual void Remove(string name)
170 {
171 base.BaseRemove(name);
172 }
173
174 // Token: 0x17000651 RID: 1617
175 public string this[string name]
176 {
177 get
178 {
179 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
180 }
181 set
182 {
183 }
184 }
185
186 // Token: 0x06001C5E RID: 7262 RVA: 0x0004D828 File Offset: 0x0004BA28
187 public virtual string Get(int index)
188 {
189 if (base.BaseGet(index) != null)
190 {
191 }
192 string text;
193 return text;
194 }
195
196 // Token: 0x06001C5F RID: 7263 RVA: 0x0004D848 File Offset: 0x0004BA48
197 public virtual string[] GetValues(int index)
198 {
199 if (base.BaseGet(index) != null)
200 {
201 }
202 string[] array;
203 return array;
204 }
205
206 // Token: 0x06001C60 RID: 7264 RVA: 0x0004D868 File Offset: 0x0004BA68
207 public virtual string GetKey(int index)
208 {
209 return base.BaseGetKey(index);
210 }
211
212 // Token: 0x17000652 RID: 1618
213 public string this[int index]
214 {
215 get
216 {
217 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
218 }
219 }
220
221 // Token: 0x17000653 RID: 1619
222 // (get) Token: 0x06001C62 RID: 7266 RVA: 0x0004D87C File Offset: 0x0004BA7C
223 public virtual string[] AllKeys
224 {
225 get
226 {
227 string[] array;
228 if (this._allKeys == null)
229 {
230 array = base.BaseGetAllKeys();
232 }
233 return array;
234 }
235 }
236
237 // Token: 0x06001C63 RID: 7267 RVA: 0x0004D8A0 File Offset: 0x0004BAA0
239 {
240 if (!true)
241 {
242 }
243 base..ctor();
244 }
245
246 // Token: 0x040013A9 RID: 5033
247 private string[] _all;
248
249 // Token: 0x040013AA RID: 5034
250 private string[] _allKeys;
251 }
252}
class f__AnonymousType0<< Count > j__TPar
NameValueCollection(int capacity, IEqualityComparer equalityComparer)
NameValueCollection(SerializationInfo info, StreamingContext context)
virtual void Add(string name, string value)
virtual void Set(string name, string value)