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

◆ ToObject() [6/11]

static object System.Enum.ToObject ( Type enumType,
object value )
inlinestatic

Definition at line 337 of file Enum.cs.

338 {
339 if (enumType != null)
340 {
342 object obj;
343 return obj;
344 }
345 string resourceString = Environment.GetResourceString("The value passed in must be an enum base or an underlying type for an enum, such as an Int32.");
346 throw new InvalidCastException();
347 }
class f__AnonymousType0<< Count > j__TPar
static TypeCode GetTypeCode(object value)
Definition Convert.cs:49
static string GetResourceString(string key)
TypeCode
Definition TypeCode.cs:7

References System.Environment.GetResourceString(), System.Convert.GetTypeCode(), j__TPar, and System.obj.

Referenced by Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(), and Newtonsoft.Json.Utilities.ConvertUtils.TryConvertInternal().