예제 #1
0
        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);
            }
        }
예제 #2
0
        public List <string> GetCNToInvestigate()
        {
            List <string> output = new List <string>();

            output.AddRange(CNToInvestigate);
            CNToInvestigate.Clear();
            return(output);
        }
예제 #3
0
        public List <string> GetCNToInvestigate()
        {
            List <string> output = new List <string>();

            foreach (string s in CNToInvestigate)
            {
                output.Add(s);
            }
            CNToInvestigate.Clear();
            return(output);
        }