コード例 #1
0
 public bool RemoveAlumni(Alumni alumni)
 {
     if (Alumnus.Count() == 0)
     {
         throw new ArgumentException("Alumnus List was empty, nothing to be removed");
     }
     return(Alumnus.Remove(alumni));
 }
コード例 #2
0
        public void AddAlumni(Alumni alumni)
        {
            if (alumni == null)
            {
                throw new ArgumentNullException();
            }

            Alumnus.Add(alumni);
        }