terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
EnumUtils.cs
Go to the documentation of this file.
1using System;
5using System.Linq;
13
15{
16 [Preserve]
17 [global::Cpp2ILInjected.Token(Token = "0x2000065")]
18 internal static class EnumUtils
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x60003A1")]
21 [global::Cpp2ILInjected.Address(RVA = "0x1CD72CC", Offset = "0x1CD72CC", Length = "0x400")]
22 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
23 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BidirectionalDictionary<, >), Member = ".ctor", MemberParameters = new object[] { "System.Collections.Generic.IEqualityComparer`1<TFirst>", "System.Collections.Generic.IEqualityComparer`1<TSecond>" }, ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "GetFields", ReturnType = typeof(FieldInfo[]))]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "GetTypeFromHandle", MemberParameters = new object[] { typeof(RuntimeTypeHandle) }, ReturnType = typeof(Type))]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Cast", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[] { typeof(IEnumerable) }, ReturnType = "System.Collections.Generic.IEnumerable`1<TResult>")]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, object>), Member = ".ctor", MemberParameters = new object[]
29 {
30 typeof(object),
32 }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Select", MemberTypeParameters = new object[]
34 {
35 typeof(object),
36 typeof(object)
37 }, MemberParameters = new object[]
38 {
41 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TResult>")]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable), Member = "SingleOrDefault", MemberTypeParameters = new object[] { "TSource" }, MemberParameters = new object[] { "System.Collections.Generic.IEnumerable`1<TSource>" }, ReturnType = "TSource")]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BidirectionalDictionary<, >), Member = "TryGetBySecond", MemberParameters = new object[] { "TSecond", "TFirst&" }, ReturnType = typeof(bool))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BidirectionalDictionary<, >), Member = "Set", MemberParameters = new object[] { "TFirst", "TSecond" }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CultureInfo), Member = "get_InvariantCulture", ReturnType = typeof(CultureInfo))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringUtils), Member = "FormatWith", MemberParameters = new object[]
47 {
48 typeof(string),
50 typeof(object),
51 typeof(object)
52 }, ReturnType = typeof(string))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(InvalidOperationException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 30)]
56 {
57 throw null;
58 }
59
60 [global::Cpp2ILInjected.Token(Token = "0x60003A2")]
61 public static IList<T> GetFlagsValues<T>(T value) where T : struct
62 {
63 throw null;
64 }
65
66 [global::Cpp2ILInjected.Token(Token = "0x60003A3")]
68 {
69 throw null;
70 }
71
72 [global::Cpp2ILInjected.Token(Token = "0x60003A4")]
77
78 [global::Cpp2ILInjected.Token(Token = "0x60003A5")]
79 [global::Cpp2ILInjected.Address(RVA = "0x1CCA848", Offset = "0x1CCA848", Length = "0x4F0")]
80 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
81 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(JsonWriter), Member = "BuildStateArray", ReturnType = typeof(JsonWriter.State[][]))]
82 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "GetFields", ReturnType = typeof(FieldInfo[]))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, bool>), Member = ".ctor", MemberParameters = new object[]
86 {
87 typeof(object),
89 }, ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Where", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
91 {
94 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TSource>")]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
96 {
97 typeof(string),
98 typeof(string),
99 typeof(string)
100 }, ReturnType = typeof(string))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
102 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 32)]
104 {
105 throw null;
106 }
107
108 [global::Cpp2ILInjected.Token(Token = "0x60003A6")]
109 [global::Cpp2ILInjected.Address(RVA = "0x1CD76CC", Offset = "0x1CD76CC", Length = "0x4E4")]
110 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
111 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
113 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "GetFields", ReturnType = typeof(FieldInfo[]))]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, bool>), Member = ".ctor", MemberParameters = new object[]
115 {
116 typeof(object),
118 }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Where", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
120 {
123 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TSource>")]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
125 {
126 typeof(string),
127 typeof(string),
128 typeof(string)
129 }, ReturnType = typeof(string))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 32)]
133 {
134 throw null;
135 }
136
137 [global::Cpp2ILInjected.Token(Token = "0x60003A7")]
138 [global::Cpp2ILInjected.Address(RVA = "0x1CD7BB0", Offset = "0x1CD7BB0", Length = "0x234")]
139 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
140 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(StringEnumConverter), Member = "ReadJson", MemberParameters = new object[]
141 {
143 typeof(Type),
144 typeof(object),
146 }, ReturnType = typeof(object))]
147 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Equality", MemberParameters = new object[]
149 {
150 typeof(string),
151 typeof(string)
152 }, ReturnType = typeof(bool))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadSafeStore<, >), Member = "Get", MemberParameters = new object[] { "TKey" }, ReturnType = "TValue")]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IndexOf", MemberParameters = new object[] { typeof(char) }, ReturnType = typeof(int))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Split", MemberParameters = new object[] { typeof(char[]) }, ReturnType = typeof(string[]))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Trim", ReturnType = typeof(string))]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EnumUtils), Member = "ResolvedEnumName", MemberParameters = new object[]
158 {
160 typeof(string)
161 }, ReturnType = typeof(string))]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Join", MemberParameters = new object[]
163 {
164 typeof(string),
165 typeof(string[])
166 }, ReturnType = typeof(string))]
167 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enum), Member = "Parse", MemberParameters = new object[]
168 {
169 typeof(Type),
170 typeof(string),
171 typeof(bool)
172 }, ReturnType = typeof(object))]
173 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
174 public static object ParseEnumName(string enumText, bool isNullable, Type t)
175 {
176 throw null;
177 }
178
179 [global::Cpp2ILInjected.Token(Token = "0x60003A8")]
180 [global::Cpp2ILInjected.Address(RVA = "0x1CD7E54", Offset = "0x1CD7E54", Length = "0x1B0")]
181 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
182 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(StringEnumConverter), Member = "WriteJson", MemberParameters = new object[]
183 {
185 typeof(object),
187 }, ReturnType = typeof(void))]
188 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadSafeStore<, >), Member = "Get", MemberParameters = new object[] { "TKey" }, ReturnType = "TValue")]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Split", MemberParameters = new object[] { typeof(char[]) }, ReturnType = typeof(string[]))]
191 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Trim", ReturnType = typeof(string))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BidirectionalDictionary<, >), Member = "TryGetByFirst", MemberParameters = new object[] { "TFirst", "TSecond&" }, ReturnType = typeof(bool))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringUtils), Member = "ToCamelCase", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Join", MemberParameters = new object[]
195 {
196 typeof(string),
197 typeof(string[])
198 }, ReturnType = typeof(string))]
199 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
200 public static string ToEnumName(Type enumType, string enumText, bool camelCaseText)
201 {
202 throw null;
203 }
204
205 [global::Cpp2ILInjected.Token(Token = "0x60003A9")]
206 [global::Cpp2ILInjected.Address(RVA = "0x1CD7DE4", Offset = "0x1CD7DE4", Length = "0x70")]
207 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
208 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(EnumUtils), Member = "ParseEnumName", MemberParameters = new object[]
209 {
210 typeof(string),
211 typeof(bool),
212 typeof(Type)
213 }, ReturnType = typeof(object))]
214 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
215 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BidirectionalDictionary<, >), Member = "TryGetBySecond", MemberParameters = new object[] { "TSecond", "TFirst&" }, ReturnType = typeof(bool))]
216 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
218 {
219 throw null;
220 }
221
222 // Note: this type is marked as 'beforefieldinit'.
223 [global::Cpp2ILInjected.Token(Token = "0x60003AA")]
224 [global::Cpp2ILInjected.Address(RVA = "0x1CD81D0", Offset = "0x1CD81D0", Length = "0xDC")]
225 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, object>), Member = ".ctor", MemberParameters = new object[]
227 {
228 typeof(object),
230 }, ReturnType = typeof(void))]
231 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadSafeStore<, >), Member = ".ctor", MemberParameters = new object[] { "System.Func`2<TKey, TValue>" }, ReturnType = typeof(void))]
232 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
233 static EnumUtils()
234 {
235 throw null;
236 }
237
238 [global::Cpp2ILInjected.Token(Token = "0x40001EA")]
240
242 [global::Cpp2ILInjected.Token(Token = "0x2000066")]
244 private sealed class <>c
245 {
246 // Note: this type is marked as 'beforefieldinit'.
247 [global::Cpp2ILInjected.Token(Token = "0x60003AB")]
248 [global::Cpp2ILInjected.Address(RVA = "0x1CD82AC", Offset = "0x1CD82AC", Length = "0x5C")]
249 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
250 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
251 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
252 static <>c()
253 {
254 throw null;
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x60003AC")]
258 [global::Cpp2ILInjected.Address(RVA = "0x1CD8308", Offset = "0x1CD8308", Length = "0x8")]
259 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
260 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
261 public <>c()
262 {
263 throw null;
264 }
265
266 [global::Cpp2ILInjected.Token(Token = "0x60003AD")]
267 [global::Cpp2ILInjected.Address(RVA = "0x1CD8310", Offset = "0x1CD8310", Length = "0x8")]
268 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
270 {
271 throw null;
272 }
273
274 [global::Cpp2ILInjected.Token(Token = "0x60003AE")]
275 [global::Cpp2ILInjected.Address(RVA = "0x1CD8318", Offset = "0x1CD8318", Length = "0xC")]
276 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
277 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FieldInfo), Member = "get_IsLiteral", ReturnType = typeof(bool))]
279 {
280 throw null;
281 }
282
283 [global::Cpp2ILInjected.Token(Token = "0x60003AF")]
284 [global::Cpp2ILInjected.Address(RVA = "0x1CD8324", Offset = "0x1CD8324", Length = "0xC")]
285 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
286 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FieldInfo), Member = "get_IsLiteral", ReturnType = typeof(bool))]
288 {
289 throw null;
290 }
291
292 [global::Cpp2ILInjected.Token(Token = "0x40001EB")]
293 public static readonly EnumUtils.<>c <>9;
294
295 [global::Cpp2ILInjected.Token(Token = "0x40001EC")]
297
298 [global::Cpp2ILInjected.Token(Token = "0x40001ED")]
299 public static Func<FieldInfo, bool> <>9__5_0;
300
301 [global::Cpp2ILInjected.Token(Token = "0x40001EE")]
302 public static Func<FieldInfo, bool> <>9__6_0;
303 }
304
306 [global::Cpp2ILInjected.Token(Token = "0x2000067")]
308 private sealed class <>c__2<T> where T : struct
309 {
310 // Note: this type is marked as 'beforefieldinit'.
311 [global::Cpp2ILInjected.Token(Token = "0x60003B0")]
313 {
314 throw null;
315 }
316
317 [global::Cpp2ILInjected.Token(Token = "0x60003B1")]
319 {
320 throw null;
321 }
322
323 [global::Cpp2ILInjected.Token(Token = "0x60003B2")]
325 {
326 throw null;
327 }
328
329 [global::Cpp2ILInjected.Token(Token = "0x40001EF")]
330 public static readonly EnumUtils.<>c__2<T> <>9;
331
332 [global::Cpp2ILInjected.Token(Token = "0x40001F0")]
333 public static Func<EnumValue<ulong>, bool> <>9__2_0;
334 }
335 }
336}
class f__AnonymousType0<< Count > j__TPar
static string ToEnumName(Type enumType, string enumText, bool camelCaseText)
Definition EnumUtils.cs:200
static IList< EnumValue< ulong > > GetNamesAndValues< T >()
Definition EnumUtils.cs:67
static object ParseEnumName(string enumText, bool isNullable, Type t)
Definition EnumUtils.cs:174
static IList< object > GetValues(Type enumType)
Definition EnumUtils.cs:103
static IList< string > GetNames(Type enumType)
Definition EnumUtils.cs:132
static readonly ThreadSafeStore< Type, BidirectionalDictionary< string, string > > EnumMemberNamesPerType
Definition EnumUtils.cs:239
bool< GetFlagsValues > b__2_0(EnumValue< ulong > v)
Definition EnumUtils.cs:324
static IList< EnumValue< TUnderlyingType > > GetNamesAndValues< TUnderlyingType >(Type enumType)
Definition EnumUtils.cs:73
static string ResolvedEnumName(BidirectionalDictionary< string, string > map, string enumText)
Definition EnumUtils.cs:217
static IList< T > GetFlagsValues< T >(T value)
Definition EnumUtils.cs:61
static BidirectionalDictionary< string, string > InitializeEnumType(Type type)
Definition EnumUtils.cs:55