Example #1
0
        private string FindId()
        {
            IdFinder idFinder = new IdFinder(this);
            string   id       = idFinder.FindId();

            return(id);
        }
Example #2
0
        private string BuildTo(Person[] people)
        {
            List <string> addresses = new List <string>();
            IdFinder      idFinder;

            for (int i = 0; i < people.Length; i++)
            {
                if (people[i].email == null)
                {
                    idFinder = new IdFinder(people[i]);
                    people[i].SetId(idFinder.FindId());
                }

                addresses.Add(people[i].email);
            }

            string to = "";

            for (int i = 0; i < addresses.Count; i++)
            {
                to += addresses[i] + ";";
            }

            return(to);
        }