private List <DirectoryEntry> GetRootEntries() { if (ParameterSetName == "FromNC") { return(GetNamingContextRoots()); } return(DistinguishedName.Select(dn => new DirectoryEntry(ConstructLdapUrl(Domain, dn, false))).ToList()); }