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

◆ IsEnumDefined()

override bool System.RuntimeType.IsEnumDefined ( object value)
inlinevirtual

Reimplemented from System.Type.

Definition at line 852 of file RuntimeType.cs.

853 {
854 if (value != null)
855 {
856 Type type = value.GetType();
857 if (type != null)
858 {
859 throw new InvalidCastException();
860 }
861 bool flag = Type.IsIntegerType(type);
863 ulong num = Enum.ToUInt64(value);
864 }
865 string resourceString = Environment.GetResourceString("Unknown enum type.");
866 throw new ArrayTypeMismatchException();
867 }
class f__AnonymousType0<< Count > j__TPar
static ulong[] InternalGetValues(RuntimeType enumType)
Definition Enum.cs:260
static ulong ToUInt64(object value)
Definition Enum.cs:64
static string GetResourceString(string key)
static bool IsIntegerType(Type t)
Definition Type.cs:75
new Type GetType()
Definition Type.cs:287

References System.array, System.Environment.GetResourceString(), System.Type.GetType(), System.Enum.InternalGetValues(), System.Type.IsIntegerType(), j__TPar, System.Enum.ToUInt64(), and System.value.