コード例 #1
0
        public bool IsOlderThan(Student other)
        {
            DateTime firstDate  = Student.GetBirthDate(this.OtherInfo);
            DateTime secondDate = Student.GetBirthDate(other.OtherInfo);

            return(firstDate < secondDate);
        }
コード例 #2
0
        public bool IsOlderThan(Student other)
        {
            DateTime firstDate  = this.GetBirthDate();
            DateTime secondDate = other.GetBirthDate();

            return(firstDate > secondDate);
        }
コード例 #3
0
 public bool IsOlderThan(Student other)
 {
     DateTime firstDate = this.GetBirthDate();
     DateTime secondDate = other.GetBirthDate();
     return firstDate > secondDate;
 }