예제 #1
0
        public static DataMemberAttribute smethod_6(MemberInfo memberInfo_0)
        {
            if (memberInfo_0.smethod_1() == MemberTypes.Field)
            {
                return(Class140 <DataMemberAttribute> .smethod_0(memberInfo_0));
            }
            PropertyInfo        info      = (PropertyInfo)memberInfo_0;
            DataMemberAttribute attribute = Class140 <DataMemberAttribute> .smethod_0(info);

            if ((attribute == null) && info.smethod_0())
            {
                for (Type type = info.DeclaringType; attribute == null; type = type.smethod_6())
                {
                    if (type == null)
                    {
                        return(attribute);
                    }
                    PropertyInfo info2 = (PropertyInfo)Class194.smethod_34(type, info);
                    if ((info2 != null) && info2.smethod_0())
                    {
                        attribute = Class140 <DataMemberAttribute> .smethod_0(info2);
                    }
                }
            }
            return(attribute);
        }
예제 #2
0
        public static DataContractAttribute smethod_5(Type type_1)
        {
            for (Type type = type_1; type != null; type = type.smethod_6())
            {
                DataContractAttribute attribute = Class140 <DataContractAttribute> .smethod_0(type);

                if (attribute != null)
                {
                    return(attribute);
                }
            }
            return(null);
        }
예제 #3
0
 public static JsonContainerAttribute smethod_0(Type type_1)
 {
     return(Class140 <JsonContainerAttribute> .smethod_0(type_1));
 }
예제 #4
0
 public static SerializableAttribute smethod_4(Type type_1)
 {
     return(Class140 <SerializableAttribute> .smethod_0(type_1));
 }