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

◆ CreateWrapper()

IWrappedCollection Newtonsoft.Json.Serialization.JsonArrayContract.CreateWrapper ( object list)
inlinepackage

Definition at line 203 of file JsonArrayContract.cs.

204 {
205 if (this._genericWrapperCreator == null)
206 {
208 if (type != null && type == null)
209 {
210 goto IL_0077;
211 }
212 Type type2;
214 Type type3;
219 if (type4 != null && type4 == null)
220 {
221 goto IL_0077;
222 }
224 Type type5;
225 if (type5 != null && type5 == null)
226 {
227 goto IL_0077;
228 }
231 }
232 if ((list == null || list != null) && list != null && list == null)
233 {
234 throw new InvalidCastException();
235 }
236 IL_0077:
237 throw new ArrayTypeMismatchException();
238 }
class f__AnonymousType0<< Count > j__TPar
static bool InheritsGenericDefinition(Type type, Type genericClassDefinition)

References Newtonsoft.Json.Serialization.JsonArrayContract._genericCollectionDefinitionType, Newtonsoft.Json.Serialization.JsonArrayContract._genericWrapperCreator, Newtonsoft.Json.Serialization.JsonArrayContract._genericWrapperType, Newtonsoft.Json.Serialization.JsonArrayContract.CollectionItemType, Newtonsoft.Json.Utilities.ReflectionUtils.InheritsGenericDefinition(), j__TPar, Newtonsoft.Json.Serialization.JsonArrayContract.k__BackingField, System.list, and Newtonsoft.Json.Serialization.JsonTypeReflector.ReflectionDelegateFactory.