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)); }
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)); }