示例#1
0
        // Token: 0x06000E40 RID: 3648 RVA: 0x000526C0 File Offset: 0x000508C0
        public static IEnumerable <FieldInfo> GetFields(Type targetType, BindingFlags bindingAttr)
        {
            ValidationUtils.ArgumentNotNull(targetType, "targetType");
            List <MemberInfo> list = new List <MemberInfo>(targetType.GetFields(bindingAttr));

            ReflectionUtils.GetChildPrivateFields(list, targetType, bindingAttr);
            return(list.Cast <FieldInfo>());
        }
示例#2
0
        public static IEnumerable <FieldInfo> GetFields(
            Type targetType,
            BindingFlags bindingAttr)
        {
            ValidationUtils.ArgumentNotNull((object)targetType, nameof(targetType));
            List <MemberInfo> source = new List <MemberInfo>((IEnumerable <MemberInfo>)targetType.GetFields(bindingAttr));

            ReflectionUtils.GetChildPrivateFields((IList <MemberInfo>)source, targetType, bindingAttr);
            return(source.Cast <FieldInfo>());
        }