Beispiel #1
0
 public int CompareTo([AllowNull] StudentOut other)
 {
     if (Sno == null && other.Sno == null)
     {
         return(0);
     }
     else if (Sno == null)
     {
         return(-1);
     }
     else if (other.Sno == null)
     {
         return(1);
     }
     return(Sno.CompareTo(other.Sno));
 }
Beispiel #2
0
 public int CompareTo([AllowNull] ReportsView other)
 {
     if (Grade == other.Grade)
     {
         if (Sno == other.Sno)
         {
             return(Ono.CompareTo(other.Ono));
         }
         else
         {
             return(Sno.CompareTo(other.Sno));
         }
     }
     else
     {
         return(Grade.CompareTo(other.Grade));
     }
 }
 public int CompareTo([AllowNull] ReportSummaryOut other)
 {
     return(Sno.CompareTo(other.Sno));
 }