Пример #1
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);
 }
Пример #2
0
 // Token: 0x06000D48 RID: 3400 RVA: 0x000482E9 File Offset: 0x000464E9
 public IList <Attribute> kmethod_2367(Type arg_0, bool bool_0)
 {
     return(Class_514.GetAttributes(this.field_0, arg_0, bool_0));
 }
Пример #3
0
 // Token: 0x06000D47 RID: 3399 RVA: 0x000482DA File Offset: 0x000464DA
 public IList <Attribute> dmethod_2366(bool bool_0)
 {
     return(Class_514.GetAttributes(this.field_0, null, bool_0));
 }