Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     Console.WriteLine("I am not getting clled");
     return(StudentID.GetHashCode());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get a hash code for the current object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(ID.GetHashCode() * 2 - StudentID.GetHashCode() - Grade.GetHashCode());
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(StudentID.GetHashCode());
 }