Ejemplo n.º 1
0
 // Token: 0x060000E2 RID: 226 RVA: 0x00003300 File Offset: 0x00001500
 public static void smethod_0(Array array_0, RuntimeFieldHandle runtimeFieldHandle_0)
 {
     if (Class124.smethod_0())
     {
         int metadataToken = FieldInfo.GetFieldFromHandle(runtimeFieldHandle_0).MetadataToken;
     }
     RuntimeHelpers.InitializeArray(array_0, runtimeFieldHandle_0);
 }
Ejemplo n.º 2
0
    // Token: 0x060009F7 RID: 2551 RVA: 0x000386C4 File Offset: 0x000368C4
    public static JsonConverter smethod_5(object object_0)
    {
        JsonConverterAttribute jsonConverterAttribute = Class124.smethod_0 <JsonConverterAttribute>(object_0);

        if (jsonConverterAttribute != null)
        {
            Func <object[], object> func = Class124.iOhAeZguXU.Get(jsonConverterAttribute.ConverterType);
            if (func != null)
            {
                return((JsonConverter)func(jsonConverterAttribute.ConverterParameters));
            }
        }
        return(null);
    }
Ejemplo n.º 3
0
    // Token: 0x060009F6 RID: 2550 RVA: 0x0003868C File Offset: 0x0003688C
    public static MemberSerialization smethod_4(Type type_0, bool bool_0)
    {
        JsonObjectAttribute jsonObjectAttribute = Class124.smethod_0 <JsonObjectAttribute>(type_0);

        if (jsonObjectAttribute != null)
        {
            return(jsonObjectAttribute.MemberSerialization);
        }
        if (Class124.smethod_2(type_0) != null)
        {
            return(MemberSerialization.OptIn);
        }
        if (!bool_0 && Class124.smethod_15(type_0))
        {
            return(MemberSerialization.Fields);
        }
        return(MemberSerialization.OptOut);
    }