示例#1
0
        public int CompareTo(Object obj)
        {
            Checkride cr = obj as Checkride;

            return(cr == null ? -1 : DateEarned.CompareTo(cr.DateEarned));
        }
示例#2
0
 public int CompareTo(Object obj)
 {
     return(!(obj is Checkride cr) ? -1 : DateEarned.CompareTo(cr.DateEarned));
 }