Created
March 31, 2021 14:42
-
-
Save sasan-salem/a91a556449d2c4214f2c7e4d79a504db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SerialNoComparer : IComparer<Student> | |
{ | |
public int Compare(Student s1, Student s2) | |
{ | |
return s1.SerialNo.CompareTo(s2.SerialNo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment