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

◆ ReadJson()

override object Newtonsoft.Json.Converters.HashSetConverter.ReadJson ( JsonReader reader,
Type objectType,
object existingValue,
JsonSerializer serializer )
inline

Definition at line 16 of file HashSetConverter.cs.

17 {
18 if (existingValue != null)
19 {
20 }
21 object obj = Activator.CreateInstance(objectType);
22 MethodInfo method = objectType.GetMethod("Add");
23 JArray jarray = JArray.Load(reader);
24 int count = jarray.Count;
25 long num = 0L;
26 JsonReader jsonReader = jarray[(int)num].CreateReader();
27 object obj2;
28 if (obj2 == null || obj2 != null)
29 {
30 int count2 = jarray.Count;
31 return obj;
32 }
34 }
class f__AnonymousType0<< Count > j__TPar
static new JArray Load(JsonReader reader)
Definition JArray.cs:89
static object CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture)
Definition Activator.cs:15
MethodInfo GetMethod(string name)
Definition Type.cs:945

References System.count, Newtonsoft.Json.Linq.JContainer.Count, System.Activator.CreateInstance(), System.Type.GetMethod(), j__TPar, System.L, Newtonsoft.Json.Linq.JArray.Load(), and System.obj.