public List <string> GetMissingItem(SearchType searchType) { List <string> output = new List <string>(); switch (searchType) { default: return(null); case SearchType.DistinguishedName: output.AddRange(CNToInvestigate); CNToInvestigate.Clear(); return(output); case SearchType.Sid: output.AddRange(SIDToInvestigate); SIDToInvestigate.Clear(); return(output); case SearchType.PrimaryGroupId: output.AddRange(PGIdToInvestigate.ConvertAll(x => x.ToString())); KnownPGId.AddRange(PGIdToInvestigate); PGIdToInvestigate.Clear(); return(output); } }
public List <string> GetCNToInvestigate() { List <string> output = new List <string>(); output.AddRange(CNToInvestigate); CNToInvestigate.Clear(); return(output); }
public List <string> GetCNToInvestigate() { List <string> output = new List <string>(); foreach (string s in CNToInvestigate) { output.Add(s); } CNToInvestigate.Clear(); return(output); }