예제 #1
0
        private static T PushClass <[_0008._0012(0)] T>(Type first) where T : Attribute
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            Type type = ForgotClass(first);
            T    val;

            if (type != null)
            {
                val = ResolverErrorFilter.PopReader <T>(type, iscounter: true);
                if (val != null)
                {
                    return(val);
                }
            }
            val = ResolverErrorFilter.PopReader <T>(first, iscounter: true);
            if (val != null)
            {
                return(val);
            }
            Type[] interfaces = first.GetInterfaces();
            for (int i = 0; i < interfaces.Length; i++)
            {
                val = ResolverErrorFilter.PopReader <T>(interfaces[i], iscounter: true);
                if (val != null)
                {
                    return(val);
                }
            }
            return(null);
        }
예제 #2
0
        public static T ReadClass <[_0008._0012(0)] T>(object key) where T : Attribute
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            Type type = key as Type;

            if ((object)type != null)
            {
                return(PushClass <T>(type));
            }
            MemberInfo memberInfo = key as MemberInfo;

            if ((object)memberInfo != null)
            {
                return(PrepareClass <T>(memberInfo));
            }
            return(ResolverErrorFilter.PopReader <T>(key, iscounter: true));
        }
예제 #3
0
        private static T PrepareClass <[_0008._0012(0)] T>(MemberInfo item) where T : Attribute
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            Type type = ForgotClass(item.DeclaringType);
            T    val;

            if (type != null)
            {
                MemberInfo memberInfo = ResolverErrorFilter.PrepareReader(type, item);
                if (memberInfo != null)
                {
                    val = ResolverErrorFilter.PopReader <T>(memberInfo, iscounter: true);
                    if (val != null)
                    {
                        return(val);
                    }
                }
            }
            val = ResolverErrorFilter.PopReader <T>(item, iscounter: true);
            if (val != null)
            {
                return(val);
            }
            if (item.DeclaringType != null)
            {
                Type[] interfaces = item.DeclaringType.GetInterfaces();
                for (int i = 0; i < interfaces.Length; i++)
                {
                    MemberInfo memberInfo2 = ResolverErrorFilter.PrepareReader(interfaces[i], item);
                    if (memberInfo2 != null)
                    {
                        val = ResolverErrorFilter.PopReader <T>(memberInfo2, iscounter: true);
                        if (val != null)
                        {
                            return(val);
                        }
                    }
                }
            }
            return(null);
        }
예제 #4
0
 public static bool UpdateClass(object value)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     return(ResolverErrorFilter.PopReader <SerializableAttribute>(value, iscounter: false) != null);
 }
예제 #5
0
 public static bool AwakeClass(object ident)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     return(ResolverErrorFilter.PopReader <NonSerializedAttribute>(ident, iscounter: false) != null);
 }