Example #1
0
        public static Volunteers FromSingle(Volunteer volunteer)
        {
            var volunteers = new Volunteers();

            volunteers.Add(volunteer);

            return(volunteers);
        }
Example #2
0
        public static Volunteers FromArray(BasicVolunteer[] basicArray)
        {
            var result = new Volunteers();

            result.Capacity = basicArray.Length * 11 / 10;
            foreach (BasicVolunteer basic in basicArray)
            {
                result.Add(Volunteer.FromBasic(basic));
            }

            return(result);
        }