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
CollectionUtils.cs
Go to the documentation of this file.
1using System;
4using System.Linq;
8
10{
11 // Token: 0x0200006C RID: 108
12 [Preserve]
13 internal static class CollectionUtils
14 {
15 // Token: 0x060003CA RID: 970 RVA: 0x0000AB04 File Offset: 0x00008D04
17 {
18 /*
19An exception occurred when decompiling this method (060003CA)
20
21ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Newtonsoft.Json.Utilities.CollectionUtils::IsNullOrEmpty<T>(System.Collections.Generic.ICollection`1<T>)
22
23 ---> System.Exception: Basic block has to end with unconditional control flow.
24{
25 Block_0:
26 stloc:int32(var_0_06, ldfld:int32(int32::m_value, ldc.i4:int32[exp:int32&](1)))
27}
28
29 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
30 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
31 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
32 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
33 --- End of inner exception stack trace ---
34 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
35 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
36*/;
37 }
38
39 // Token: 0x060003CB RID: 971 RVA: 0x0000AB18 File Offset: 0x00008D18
40 public static void AddRange<T>(this IList<T> initial, IEnumerable<T> collection)
41 {
42 if (initial == null)
43 {
44 throw new OutOfMemoryException();
45 }
46 if (collection != null)
47 {
48 return;
49 }
50 }
51
52 // Token: 0x060003CC RID: 972 RVA: 0x0000AB54 File Offset: 0x00008D54
53 public static void AddRange<T>(this IList<T> initial, IEnumerable collection)
54 {
55 }
56
57 // Token: 0x060003CD RID: 973 RVA: 0x0000AB64 File Offset: 0x00008D64
58 public static bool IsDictionaryType(Type type)
59 {
60 ValidationUtils.ArgumentNotNull("type", "type");
61 if (!true)
62 {
63 }
64 return true;
65 }
66
67 // Token: 0x060003CE RID: 974 RVA: 0x0000AB88 File Offset: 0x00008D88
69 {
70 if (!true)
71 {
72 }
73 if (collectionType == null || collectionType != null)
74 {
75 Type type;
77 }
79 }
80
81 // Token: 0x060003CF RID: 975 RVA: 0x0000ABAC File Offset: 0x00008DAC
83 {
84 if (!true)
85 {
86 }
87 if ((collectionType != null && collectionType == null) || !false)
88 {
89 }
91 }
92
93 // Token: 0x060003D0 RID: 976 RVA: 0x0000212A File Offset: 0x0000032A
94 public static bool AddDistinct<T>(this IList<T> list, T value)
95 {
96 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98
99 // Token: 0x060003D1 RID: 977 RVA: 0x0000ABD0 File Offset: 0x00008DD0
101 {
102 }
103
104 // Token: 0x060003D2 RID: 978 RVA: 0x0000ABE0 File Offset: 0x00008DE0
106 {
107 if (value != null)
108 {
109 while (value != null)
110 {
111 }
112 }
113 if (!false)
114 {
115 }
116 throw new OutOfMemoryException();
117 }
118
119 // Token: 0x060003D3 RID: 979 RVA: 0x0000AC14 File Offset: 0x00008E14
121 {
122 long num = 0L;
123 if (list != null)
124 {
125 }
126 if (num == 0L)
127 {
128 }
129 throw new OutOfMemoryException();
130 }
131
132 // Token: 0x060003D4 RID: 980 RVA: 0x0000AC48 File Offset: 0x00008E48
133 public static int IndexOf<T>(this IEnumerable<T> collection, Func<T, bool> predicate)
134 {
135 if (!false)
136 {
137 }
138 throw new OutOfMemoryException();
139 }
140
141 // Token: 0x060003D5 RID: 981 RVA: 0x0000AC78 File Offset: 0x00008E78
143 {
144 }
145
146 // Token: 0x060003D6 RID: 982 RVA: 0x0000AC8C File Offset: 0x00008E8C
147 public static int IndexOfReference<T>(this List<T> list, T item)
148 {
149 }
150
151 // Token: 0x060003D7 RID: 983 RVA: 0x0000AC9C File Offset: 0x00008E9C
153 {
154 throw new InvalidCastException();
155 }
156
157 // Token: 0x060003D8 RID: 984 RVA: 0x0000ACB0 File Offset: 0x00008EB0
159 {
160 int rank = multidimensionalArray.Rank;
162 multidimensionalArray.SetValue(obj, indices);
163 }
164
165 // Token: 0x060003D9 RID: 985 RVA: 0x0000AD1C File Offset: 0x00008F1C
166 private static object JaggedArrayGetValue(IList values, int[] indices)
167 {
168 throw new InvalidCastException();
169 }
170
171 // Token: 0x060003DA RID: 986 RVA: 0x0000AD34 File Offset: 0x00008F34
172 public static Array ToMultidimensionalArray(IList values, Type type, int rank)
173 {
175 int[] array = Enumerable.ToArray<int>(list);
177 return array2;
178 }
179 }
180}
class f__AnonymousType0<< Count > j__TPar
static Array ToMultidimensionalArray(IList values, Type type, int rank)
static void CopyFromJaggedToMultidimensionalArray(IList values, Array multidimensionalArray, int[] indices)
static bool Contains< T >(this List< T > list, T value, IEqualityComparer comparer)
static int IndexOfReference< T >(this List< T > list, T item)
static bool AddRangeDistinct< T >(this IList< T > list, IEnumerable< T > values, IEqualityComparer< T > comparer)
static void AddRange< T >(this IList< T > initial, IEnumerable< T > collection)
static bool AddDistinct< T >(this IList< T > list, T value)
static object JaggedArrayGetValue(IList values, int[] indices)
static ConstructorInfo ResolveEnumerableCollectionConstructor(Type collectionType, Type collectionItemType)
static bool ContainsValue< TSource >(this IEnumerable< TSource > source, TSource value, IEqualityComparer< TSource > comparer)
static bool IsNullOrEmpty< T >(ICollection< T > collection)
static ConstructorInfo ResolveEnumerableCollectionConstructor(Type collectionType, Type collectionItemType, Type constructorArgumentType)
static int IndexOf< T >(this IEnumerable< T > collection, Func< T, bool > predicate)
static IList< int > GetDimensions(IList values, int dimensionsCount)
static void ArgumentNotNull(object value, string parameterName)