示例#1
0
 // Token: 0x06000C0C RID: 3084 RVA: 0x000435CC File Offset: 0x000417CC
 private static void lmethod_2168(Type arg_0)
 {
     if (Class_306.field_4 == null)
     {
         Class_306.field_4 = Class_491.vmethod_4065(arg_0, new string[]
         {
             "Key",
             "Value"
         });
     }
 }
示例#2
0
        // Token: 0x06000C18 RID: 3096 RVA: 0x0004381C File Offset: 0x00041A1C
        public virtual void lmethod_2178(Class_296 arg_0, object obje_0, Class_418 arg_1)
        {
            Class_491 class_  = Class_308.field_2.Get(obje_0.GetType());
            Class_441 class_2 = arg_1.prop_14 as Class_441;

            arg_0.kmethod_2007();
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Key") : "Key");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Key"), class_.cmethod_4064("Key"));
            arg_0.gmethod_2013((class_2 != null) ? class_2.smethod_3590("Value") : "Value");
            arg_1.vmethod_3175(arg_0, class_.tmethod_4062(obje_0, "Value"), class_.cmethod_4064("Value"));
            arg_0.lmethod_2008();
        }
示例#3
0
 // Token: 0x06000BEA RID: 3050 RVA: 0x00042648 File Offset: 0x00040848
 private void smethod_2140(Type arg_0)
 {
     if (this.field_2 == null)
     {
         this.field_2 = Class_491.dmethod_4066(arg_0, arg_0.GetConstructor(new Type[]
         {
             typeof(byte[])
         }), new string[]
         {
             "ToArray"
         });
     }
 }
示例#4
0
        // Token: 0x06000C17 RID: 3095 RVA: 0x000437B0 File Offset: 0x000419B0
        private static Class_491 kmethod_2177(Type arg_0)
        {
            IList <Type> genericArguments = arg_0.GetGenericArguments();
            Type         type             = genericArguments[0];
            Type         type2            = genericArguments[1];

            return(Class_491.dmethod_4066(arg_0, arg_0.GetConstructor(new Type[]
            {
                type,
                type2
            }), new string[]
            {
                "Key",
                "Value"
            }));
        }
示例#5
0
        // Token: 0x06000C19 RID: 3097 RVA: 0x000438D0 File Offset: 0x00041AD0
        public virtual object pmethod_2179(Class_285 arg_0, Type arg_1, object obje_0, Class_418 arg_2)
        {
            bool      flag   = Class_514.IsNullableType(arg_1);
            Type      type   = flag ? Nullable.GetUnderlyingType(arg_1) : arg_1;
            Class_491 class_ = Class_308.field_2.Get(type);

            if (arg_0.prop_9 != Class_508.Null)
            {
                object obj  = null;
                object obj2 = null;
                Class_308.xmethod_2181(arg_0);
                while (arg_0.prop_9 == Class_508.PropertyName)
                {
                    string a = arg_0.prop_10.ToString();
                    if (string.Equals(a, "Key", StringComparison.OrdinalIgnoreCase))
                    {
                        Class_308.xmethod_2181(arg_0);
                        obj = arg_2.smethod_3170(arg_0, class_.cmethod_4064("Key"));
                    }
                    else if (string.Equals(a, "Value", StringComparison.OrdinalIgnoreCase))
                    {
                        Class_308.xmethod_2181(arg_0);
                        obj2 = arg_2.smethod_3170(arg_0, class_.cmethod_4064("Value"));
                    }
                    else
                    {
                        arg_0.smethod_1900();
                    }
                    Class_308.xmethod_2181(arg_0);
                }
                return(class_.prop_0(new object[]
                {
                    obj,
                    obj2
                }));
            }
            if (!flag)
            {
                throw Class_417.xmethod_3101(arg_0, "Cannot convert null value to KeyValuePair.");
            }
            return(null);
        }
示例#6
0
 // Token: 0x060015AE RID: 5550 RVA: 0x000672FC File Offset: 0x000654FC
 private static Type GetAssociateMetadataTypeFromAttribute(Type type)
 {
     Attribute[] attributes = Class_514.GetAttributes(type, null, true);
     foreach (Attribute attribute in attributes)
     {
         Type type2 = attribute.GetType();
         if (string.Equals(type2.FullName, "System.ComponentModel.DataAnnotations.MetadataTypeAttribute", StringComparison.Ordinal))
         {
             if (Class_470._metadataTypeAttributeReflectionObject == null)
             {
                 Class_470._metadataTypeAttributeReflectionObject = Class_491.vmethod_4065(type2, new string[]
                 {
                     "MetadataClassType"
                 });
             }
             return((Type)Class_470._metadataTypeAttributeReflectionObject.tmethod_4062(attribute, "MetadataClassType"));
         }
     }
     return(null);
 }