示例#1
0
 private static Type IncludeClass(Type info)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     Attribute[] array = ResolverErrorFilter.ForgotReader(info, null, controlopen: true);
     foreach (Attribute attribute in array)
     {
         Type type = attribute.GetType();
         if (string.Equals(type.FullName, "System.ComponentModel.DataAnnotations.MetadataTypeAttribute", StringComparison.Ordinal))
         {
             if (_RefProperty == null)
             {
                 _RefProperty = ModelInstanceExpression.ManageIssuer(type, new string[1]
                 {
                     "MetadataClassType"
                 });
             }
             return((Type)_RefProperty.CancelIssuer(attribute, "MetadataClassType"));
         }
     }
     return(null);
 }