/// <summary> /// This is used to visit a list of members /// </summary> /// <param name="members">The list of members to visit</param> protected virtual void VisitMembers(MemberList members) { // Visit the members in sorted order foreach (Member member in members.OrderBy(m => m.FullName)) { // Don't visit nested types either as they are already visited if (!(member is TypeNode) && filter.IsExposedMember(member)) { this.VisitMember(member); } } }
protected virtual void VisitMembers(MemberList members) { // sort members by name Member[] sorted_members = new Member[members.Count]; for (int i = 0; i < members.Count; i++) { sorted_members[i] = members[i]; } Array.Sort <Member>(sorted_members, memberComparison); // visit them foreach (Member member in sorted_members) { // don't visit nested types, as they are already visited if (member is TypeNode) { continue; } if (filter.IsExposedMember(member)) { VisitMember(member); } } }