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

◆ Format()

static string System.Enum.Format ( Type enumType,
object value,
string format )
inlinestatic

Definition at line 362 of file Enum.cs.

363 {
364 int num = 1;
365 if (num == 0)
366 {
367 }
368 if (enumType != null)
369 {
370 if (value != null)
371 {
372 long num2 = 0L;
373 if (num == 0)
374 {
375 }
376 if (num2 != 0L)
377 {
378 Type type = enumType.GetType();
380 Type type2;
381 bool flag = type != type2;
382 string text;
383 return text;
384 }
385 }
386 string resourceString = Environment.GetResourceString("Type must be a type provided by the runtime.");
387 return "enumType";
388 }
389 return "value";
390 }
class f__AnonymousType0<< Count > j__TPar
static Type GetUnderlyingType(Type enumType)
Definition Enum.cs:205
static string GetResourceString(string key)
new Type GetType()
Definition Type.cs:287

References System.Environment.GetResourceString(), System.Type.GetType(), System.Enum.GetUnderlyingType(), j__TPar, System.L, System.text, and System.value.