Enumeration of nested AD user groups using C#
问题 I've written some code that gets all users of groups and nested groups. I also wanted to make sure that looping did not happen if the group membership caused a loop by having the first group a member of the last group. The code I wrote works OK but is a little slow. This is the first time I've tried to do AD look-ups. Could someone take a look and tell me if the code looks OK or bad-coding (or worse), or I've gone about it the wrong way? using System; using System.Collections.Generic; using