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 <int> GetPrimaryGroupIDToInvestigate() { List <int> output = new List <int>(); output.AddRange(PGIdToInvestigate); KnownPGId.AddRange(PGIdToInvestigate); PGIdToInvestigate.Clear(); return(output); }