Beispiel #1
0
        //public int CompareTo(Student student)
        //{
        //    return this.FirstName.CompareTo(student.FirstName);
        //}

        public int CompareTo(Student student)
        {
            var firstNameCompare = FirstName.CompareTo(student.FirstName);

            if (firstNameCompare != 0)
            {
                return(firstNameCompare);
            }
            else
            {
                return(SSN.CompareTo(student.SSN));
            }
        }