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
HashSet.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200002C RID: 44
10 [DebuggerDisplay("Count = {Count}")]
13 {
14 // Token: 0x0600012D RID: 301 RVA: 0x00003E68 File Offset: 0x00002068
15 public HashSet()
16 {
17 }
18
19 // Token: 0x0600012E RID: 302 RVA: 0x00003E78 File Offset: 0x00002078
21 {
22 if (comparer == null)
23 {
24 }
25 }
26
27 // Token: 0x0600012F RID: 303 RVA: 0x00003E90 File Offset: 0x00002090
31
32 // Token: 0x06000130 RID: 304 RVA: 0x00003EA0 File Offset: 0x000020A0
34 {
35 while (collection == null)
36 {
37 }
38 }
39
40 // Token: 0x06000131 RID: 305 RVA: 0x00003EC8 File Offset: 0x000020C8
42 {
43 }
44
45 // Token: 0x06000132 RID: 306 RVA: 0x00003EDC File Offset: 0x000020DC
47 {
48 int count = source._count;
49 if (count != 0)
50 {
51 int[] buckets = source._buckets;
52 int num = HashHelpers.ExpandPrime(int.MinValue);
53 int lastIndex = source._lastIndex;
54 HashSet.Slot[] slots = source._slots;
55 return;
56 }
57 }
58
59 // Token: 0x06000133 RID: 307 RVA: 0x00003F68 File Offset: 0x00002168
61 {
62 }
63
64 // Token: 0x06000134 RID: 308 RVA: 0x00003F78 File Offset: 0x00002178
65 public void Clear()
66 {
67 int lastIndex = this._lastIndex;
68 HashSet.Slot[] slots = this._slots;
69 long num = 0L;
70 Array.Clear(slots, (int)num, lastIndex);
71 int[] buckets = this._buckets;
72 long num2 = 0L;
73 Array.Clear(buckets, (int)num2, lastIndex);
76 }
77
78 // Token: 0x06000135 RID: 309 RVA: 0x00003FC0 File Offset: 0x000021C0
79 public bool Contains(T item)
80 {
81 if (this._buckets != null)
82 {
83 int[] buckets = this._buckets;
84 HashSet.Slot[] slots = this._slots;
85 return;
86 }
87 }
88
89 // Token: 0x06000136 RID: 310 RVA: 0x00003FEC File Offset: 0x000021EC
90 public void CopyTo(T[] array, int arrayIndex)
91 {
92 int count = this._count;
93 }
94
95 // Token: 0x06000137 RID: 311 RVA: 0x00004000 File Offset: 0x00002200
96 public bool Remove(T item)
97 {
98 /*
99An exception occurred when decompiling this method (06000137)
100
101ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Generic.HashSet`1::Remove(T)
102
103 ---> System.Exception: Basic block has to end with unconditional control flow.
104{
105 IL_001D:
106 stloc:int32[](var_6_2A, ldfld:int32[](HashSet`1::_buckets, ldloc:HashSet`1(this)))
107 stloc:int32(var_7_32, ldfld:int32(HashSet`1::_freeList, ldloc:HashSet`1(this)))
108 stloc:int32(var_9_3E, ldfld:int32(HashSet`1::_count, ldloc:HashSet`1(this)))
109 stloc:SerializationInfo(var_10_46, ldfld:SerializationInfo(HashSet`1::_siInfo, ldloc:HashSet`1(this)))
110 stfld:int32(HashSet`1::_count, ldloc:HashSet`1(this), ldloc:int32(var_9_3E))
111 stfld:SerializationInfo(HashSet`1::_siInfo, ldloc:HashSet`1(this), ldloc:SerializationInfo(var_10_46))
112 stfld:int32(HashSet`1::_freeList, ldloc:HashSet`1(this), ldloc:int32[][exp:int32](var_0_06))
113}
114
115 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
116 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
117 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
118 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
119 --- End of inner exception stack trace ---
120 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
121 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
122*/;
123 }
124
125 // Token: 0x1700002B RID: 43
126 // (get) Token: 0x06000138 RID: 312 RVA: 0x00002050 File Offset: 0x00000250
127 public int Count
128 {
129 get
130 {
131 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
132 }
133 }
134
135 // Token: 0x1700002C RID: 44
136 // (get) Token: 0x06000139 RID: 313 RVA: 0x00004070 File Offset: 0x00002270
138 {
139 get
140 {
141 }
142 }
143
144 // Token: 0x0600013A RID: 314 RVA: 0x00002050 File Offset: 0x00000250
146 {
147 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
148 }
149
150 // Token: 0x0600013B RID: 315 RVA: 0x00002050 File Offset: 0x00000250
152 {
153 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
154 }
155
156 // Token: 0x0600013C RID: 316 RVA: 0x00002050 File Offset: 0x00000250
158 {
159 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
160 }
161
162 // Token: 0x0600013D RID: 317 RVA: 0x00004080 File Offset: 0x00002280
164 {
165 while (info == null)
166 {
167 }
169 if (this._buckets != null)
170 {
171 return;
172 }
173 long num = 0L;
174 info.AddValue("Capacity", (int)num);
175 if (this._buckets != null)
176 {
177 int count = this._count;
178 Type type;
179 info.AddValue("Elements", info, type);
180 return;
181 }
182 }
183
184 // Token: 0x0600013E RID: 318 RVA: 0x000040CC File Offset: 0x000022CC
185 public virtual void OnDeserialization(object sender)
186 {
187 if ("Version" != null)
188 {
189 object obj;
190 if (obj != null)
191 {
192 if (obj == null)
193 {
194 return;
195 }
196 }
197 if (obj != null && obj == null)
198 {
199 throw new InvalidCastException();
200 }
201 int num;
202 if (num != 0)
203 {
204 object obj2;
205 if (obj2 != null && obj != null)
206 {
207 return;
208 }
209 throw new InvalidCastException();
210 }
211 else
212 {
213 int num2;
215 }
216 }
217 }
218
219 // Token: 0x0600013F RID: 319 RVA: 0x00002050 File Offset: 0x00000250
220 public bool Add(T item)
221 {
222 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
223 }
224
225 // Token: 0x06000140 RID: 320 RVA: 0x00004114 File Offset: 0x00002314
227 {
228 if (other != null)
229 {
230 return;
231 }
232 throw new OutOfMemoryException();
233 }
234
235 // Token: 0x06000141 RID: 321 RVA: 0x0000414C File Offset: 0x0000234C
236 public void CopyTo(T[] array)
237 {
238 int count = this._count;
239 }
240
241 // Token: 0x06000142 RID: 322 RVA: 0x00004160 File Offset: 0x00002360
242 public void CopyTo(T[] array, int arrayIndex, int count)
243 {
244 if (array != null)
245 {
246 int lastIndex = this._lastIndex;
247 HashSet.Slot[] slots = this._slots;
248 return;
249 }
250 }
251
252 // Token: 0x1700002D RID: 45
253 // (get) Token: 0x06000143 RID: 323 RVA: 0x00002050 File Offset: 0x00000250
255 {
256 get
257 {
258 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
259 }
260 }
261
262 // Token: 0x06000144 RID: 324 RVA: 0x00004184 File Offset: 0x00002384
263 public void TrimExcess()
264 {
265 int count = this._count;
266 if (count != 0)
267 {
269 int lastIndex = this._lastIndex;
270 HashSet.Slot[] slots = this._slots;
271 int lastIndex2 = this._lastIndex;
272 return;
273 }
276 }
277
278 // Token: 0x06000145 RID: 325 RVA: 0x000041E8 File Offset: 0x000023E8
279 private int Initialize(int capacity)
280 {
281 if (!true)
282 {
283 }
285 }
286
287 // Token: 0x06000146 RID: 326 RVA: 0x00004200 File Offset: 0x00002400
288 private void IncreaseCapacity()
289 {
290 int count = this._count;
291 if (!true)
292 {
293 }
294 int num = HashHelpers.ExpandPrime(count);
295 int count2 = this._count;
296 }
297
298 // Token: 0x06000147 RID: 327 RVA: 0x00004228 File Offset: 0x00002428
299 private void SetCapacity(int newSize)
300 {
301 if (this._slots != null)
302 {
303 int lastIndex = this._lastIndex;
304 }
305 int lastIndex2 = this._lastIndex;
306 }
307
308 // Token: 0x06000148 RID: 328 RVA: 0x00004250 File Offset: 0x00002450
309 private bool AddIfNotPresent(T value)
310 {
311 /*
312An exception occurred when decompiling this method (06000148)
313
314ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Generic.HashSet`1::AddIfNotPresent(T)
315
316 ---> System.Exception: Basic block has to end with unconditional control flow.
317{
318 IL_0008:
319 stloc:int32[](var_0_0E, ldfld:int32[](HashSet`1::_buckets, ldloc:HashSet`1(this)))
320 stloc:valuetype System.Collections.Generic.HashSet`1/Slot[](var_1_15, ldfld:valuetype System.Collections.Generic.HashSet`1/Slot<!T>[][exp:valuetype System.Collections.Generic.HashSet`1/Slot[]](HashSet`1::_slots, ldloc:HashSet`1(this)))
321 stloc:int32(var_3_1A, ldc.i4:int32(12))
322 stfld:int32(HashSet`1::_freeList, ldloc:HashSet`1(this), ldloc:int32(var_3_1A))
323 stloc:int32(var_4_28, ldfld:int32(HashSet`1::_lastIndex, ldloc:HashSet`1(this)))
324 stloc:int32[](var_5_30, ldfld:int32[](HashSet`1::_buckets, ldloc:HashSet`1(this)))
325 stloc:valuetype System.Collections.Generic.HashSet`1/Slot[](var_6_38, ldfld:valuetype System.Collections.Generic.HashSet`1/Slot<!T>[][exp:valuetype System.Collections.Generic.HashSet`1/Slot[]](HashSet`1::_slots, ldloc:HashSet`1(this)))
326 stloc:int32(var_7_40, ldfld:int32(HashSet`1::_lastIndex, ldloc:HashSet`1(this)))
327 stfld:int32(HashSet`1::_lastIndex, ldloc:HashSet`1(this), ldloc:int32(var_3_1A))
328 stloc:int32[](var_8_4F, ldfld:int32[](HashSet`1::_buckets, ldloc:HashSet`1(this)))
329 stloc:int32(var_10_5A, ldfld:int32(HashSet`1::_count, ldloc:HashSet`1(this)))
330 stloc:SerializationInfo(var_11_62, ldfld:SerializationInfo(HashSet`1::_siInfo, ldloc:HashSet`1(this)))
331 stfld:int32(HashSet`1::_count, ldloc:HashSet`1(this), ldloc:int32(var_10_5A))
332 stfld:SerializationInfo(HashSet`1::_siInfo, ldloc:HashSet`1(this), ldloc:SerializationInfo(var_11_62))
333}
334
335 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
336 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
337 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
338 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
339 --- End of inner exception stack trace ---
340 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
341 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
342*/;
343 }
344
345 // Token: 0x06000149 RID: 329 RVA: 0x000042D4 File Offset: 0x000024D4
346 private void AddValue(int index, int hashCode, T value)
347 {
348 int[] buckets = this._buckets;
349 HashSet.Slot[] slots = this._slots;
350 }
351
352 // Token: 0x0600014A RID: 330 RVA: 0x000042F4 File Offset: 0x000024F4
354 {
355 /*
356An exception occurred when decompiling this method (0600014A)
357
358ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Generic.HashSet`1::AreEqualityComparersEqual(System.Collections.Generic.HashSet`1<T>,System.Collections.Generic.HashSet`1<T>)
359
360 ---> System.Exception: Basic block has to end with unconditional control flow.
361{
362 Block_0:
363 stloc:int32(var_0_06, ldfld:int32(HashSet`1::_count, ldloc:class System.Collections.Generic.HashSet`1<!T>[exp:HashSet`1](set2)))
364 stloc:int32(var_1_0D, ldfld:int32(HashSet`1::_count, ldloc:class System.Collections.Generic.HashSet`1<!T>[exp:HashSet`1](set2)))
365 stloc:int32(var_2_14, ldfld:int32(HashSet`1::_count, ldloc:class System.Collections.Generic.HashSet`1<!T>[exp:HashSet`1](set2)))
366 stloc:int32(var_3_1B, ldfld:int32(HashSet`1::_count, ldloc:class System.Collections.Generic.HashSet`1<!T>[exp:HashSet`1](set2)))
367}
368
369 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
370 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
371 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
372 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
373 --- End of inner exception stack trace ---
374 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
375 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
376*/;
377 }
378
379 // Token: 0x0600014B RID: 331 RVA: 0x00002050 File Offset: 0x00000250
381 {
382 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
383 }
384
385 // Token: 0x040000A4 RID: 164
386 private const int Lower31BitMask = 2147483647;
387
388 // Token: 0x040000A5 RID: 165
389 private const int StackAllocThreshold = 100;
390
391 // Token: 0x040000A6 RID: 166
392 private const int ShrinkThreshold = 3;
393
394 // Token: 0x040000A7 RID: 167
395 private const string CapacityName = "Capacity";
396
397 // Token: 0x040000A8 RID: 168
398 private const string ElementsName = "Elements";
399
400 // Token: 0x040000A9 RID: 169
401 private const string ComparerName = "Comparer";
402
403 // Token: 0x040000AA RID: 170
404 private const string VersionName = "Version";
405
406 // Token: 0x040000AB RID: 171
407 private int[] _buckets;
408
409 // Token: 0x040000AC RID: 172
411
412 // Token: 0x040000AD RID: 173
413 private int _count;
414
415 // Token: 0x040000AE RID: 174
416 private int _lastIndex;
417
418 // Token: 0x040000AF RID: 175
419 private int _freeList;
420
421 // Token: 0x040000B0 RID: 176
423
424 // Token: 0x040000B1 RID: 177
425 private int _version;
426
427 // Token: 0x040000B2 RID: 178
429
430 // Token: 0x0200002D RID: 45
431 internal struct Slot
432 {
433 // Token: 0x040000B3 RID: 179
434 internal int hashCode;
435
436 // Token: 0x040000B4 RID: 180
437 internal int next;
438
439 // Token: 0x040000B5 RID: 181
440 internal T value;
441 }
442
443 // Token: 0x0200002E RID: 46
444 [Serializable]
446 {
447 // Token: 0x0600014C RID: 332 RVA: 0x0000431C File Offset: 0x0000251C
448 internal Enumerator(HashSet<T> set)
449 {
450 SerializationInfo siInfo = set._siInfo;
452 }
453
454 // Token: 0x0600014D RID: 333 RVA: 0x00004338 File Offset: 0x00002538
455 public void Dispose()
456 {
457 }
458
459 // Token: 0x0600014E RID: 334 RVA: 0x00004348 File Offset: 0x00002548
460 public bool MoveNext()
461 {
462 /*
463An exception occurred when decompiling this method (0600014E)
464
465ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Generic.HashSet`1/Enumerator::MoveNext()
466
467 ---> System.Exception: Basic block has to end with unconditional control flow.
468{
469 Block_0:
470 stloc:int32(var_0_06, ldfld:int32(Enumerator::_version, ldloc:valuetype System.Collections.Generic.HashSet`1/Enumerator&(this)))
471 stloc:int32(var_1_0D, ldfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.HashSet`1/Enumerator&(this)))
472 stfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.HashSet`1/Enumerator&(this), ldloc:int32(var_1_0D))
473 stloc:int64(var_2_16, ldc.i4:int64(0))
474 stfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.HashSet`1/Enumerator&(this), ldloc:int64[exp:int32](var_2_16))
475}
476
477 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
478 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
479 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
480 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
481 --- End of inner exception stack trace ---
482 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
483 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
484*/;
485 }
486
487 // Token: 0x1700002E RID: 46
488 // (get) Token: 0x0600014F RID: 335 RVA: 0x00004374 File Offset: 0x00002574
489 public T Current
490 {
491 get
492 {
493 return this._current;
494 }
495 }
496
497 // Token: 0x1700002F RID: 47
498 // (get) Token: 0x06000150 RID: 336 RVA: 0x00004388 File Offset: 0x00002588
500 {
501 get
502 {
503 /*
504An exception occurred when decompiling this method (06000150)
505
506ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Collections.Generic.HashSet`1/Enumerator::System.Collections.IEnumerator.get_Current()
507
508 ---> System.Exception: Basic block has to end with unconditional control flow.
509{
510 Block_0:
511 stloc:!T(var_0_0E, ldfld:!T(Enumerator::_current, ldloc:valuetype System.Collections.Generic.HashSet`1/Enumerator&(this)))
512}
513
514 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
515 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
516 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
517 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
518 --- End of inner exception stack trace ---
519 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
520 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
521*/;
522 }
523 }
524
525 // Token: 0x06000151 RID: 337 RVA: 0x000043A4 File Offset: 0x000025A4
527 {
528 int version = this._version;
529 }
530
531 // Token: 0x040000B6 RID: 182
533
534 // Token: 0x040000B7 RID: 183
535 private int _index;
536
537 // Token: 0x040000B8 RID: 184
538 private int _version;
539
540 // Token: 0x040000B9 RID: 185
541 private T _current;
542 }
543 }
544}
class f__AnonymousType0<< Count > j__TPar
void IList. Clear()
Definition Array.cs:99
void UnionWith(IEnumerable< T > other)
Definition HashSet.cs:226
HashSet(IEqualityComparer< T > comparer)
Definition HashSet.cs:20
IEqualityComparer< T > _comparer
Definition HashSet.cs:422
void CopyFrom(HashSet< T > source)
Definition HashSet.cs:46
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Definition HashSet.cs:163
HashSet(IEnumerable< T > collection, IEqualityComparer< T > comparer)
Definition HashSet.cs:33
HashSet< T >.Enumerator GetEnumerator()
Definition HashSet.cs:145
void CopyTo(T[] array, int arrayIndex, int count)
Definition HashSet.cs:242
void CopyTo(T[] array, int arrayIndex)
Definition HashSet.cs:90
virtual void OnDeserialization(object sender)
Definition HashSet.cs:185
void AddValue(int index, int hashCode, T value)
Definition HashSet.cs:346
HashSet< T >.Slot[] _slots
Definition HashSet.cs:410
static bool AreEqualityComparersEqual(HashSet< T > set1, HashSet< T > set2)
Definition HashSet.cs:353
HashSet(IEnumerable< T > collection)
Definition HashSet.cs:28
HashSet(SerializationInfo info, StreamingContext context)
Definition HashSet.cs:41
void SetCapacity(int newSize)
Definition HashSet.cs:299
static int GetPrime(int min)
static int ExpandPrime(int oldSize)
void AddValue(string name, object value, Type type)