public IEnumerable <IField> GetFields(Predicate <IField> filter = null, GetMemberOptions options = GetMemberOptions.None) { if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers) { return(EmptyList <IField> .Instance); } else { return(GetMembersHelper.GetFields(this, FilterNonStatic(filter), options)); } }
public IEnumerable <IField> GetFields(Predicate <IField> filter = null, GetMemberOptions options = GetMemberOptions.None) { if (Kind == TypeKind.Void) { return(EmptyList <IField> .Instance); } if ((options & GetMemberOptions.IgnoreInheritedMembers) == GetMemberOptions.IgnoreInheritedMembers) { return(GetFiltered(this.Fields, filter)); } else { return(GetMembersHelper.GetFields(this, filter, options)); } }