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

◆ TryConvertInternal()

static ConvertUtils.ConvertResult Newtonsoft.Json.Utilities.ConvertUtils.TryConvertInternal ( object initialValue,
CultureInfo culture,
Type targetType,
[Out] object value )
inlinestaticprivate

Definition at line 158 of file ConvertUtils.cs.

159 {
160 if (!true)
161 {
162 }
163 Type type2;
164 Type type = type2.GetType();
165 long num = 0L;
166 bool flag = ConvertUtils.IsConvertible(type.GetType());
167 bool flag2 = ConvertUtils.IsConvertible(type2);
168 object obj = Enum.ToObject(type2, num);
169 Type type3;
170 if (type3 != null)
171 {
172 }
173 object obj2;
174 if (ConvertUtils.GetConverter(type) == null || obj2 != null)
175 {
177 if (typeConverter != null)
178 {
180 }
181 return ConvertUtils.ConvertResult.NotInstantiableType;
182 }
183 throw new InvalidCastException();
184 }
class f__AnonymousType0<< Count > j__TPar
bool CanConvertFrom(Type sourceType)
static object ToObject(Type enumType, object value)
Definition Enum.cs:337
new Type GetType()
Definition Type.cs:287

References System.ComponentModel.TypeConverter.CanConvertFrom(), Newtonsoft.Json.Utilities.ConvertUtils.GetConverter(), System.Type.GetType(), Newtonsoft.Json.Utilities.ConvertUtils.IsConvertible(), j__TPar, System.L, System.obj, and System.Enum.ToObject().