Skip to content

Instantly share code, notes, and snippets.

@sasan-salem
Created March 31, 2021 09:47
Show Gist options
  • Save sasan-salem/daa11cc28d64a35c5470b8826ed6f1be to your computer and use it in GitHub Desktop.
Save sasan-salem/daa11cc28d64a35c5470b8826ed6f1be to your computer and use it in GitHub Desktop.
class Student : IEquatable<Student>
{
public string Name { get; set; }
public int Number { get; set; }
public int SerialNo { get; set; }
public int Grade { get; set; }
public bool Equals(Student other)
{
if (other.SerialNo == SerialNo)
return true;
else
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment