How to get the hashcode for enum in C#?
Enum.GetHashCode Method is used to get the HashCode for the value of the current instance. This method is inherited from the Object class.
public override int GetHashCode ();
Returns: This method returns the 32-bit signed integer hash code.
HashCode of Enum Constant Blue : 0 Hashcode of Enum Constant Black : 1