Beispiel #1
0
 public override int GetHashCode()
 {
     return(Cyan.GetHashCode() ^ Magenta.GetHashCode() ^ Yellow.GetHashCode() ^ Black.GetHashCode());
 }
Beispiel #2
0
 /// <summary>
 /// Plays the role of a hash function of a certain type.
 /// </summary>
 /// <returns>Integer number</returns>
 public override int GetHashCode()
 {
     return(Cyan.GetHashCode() ^ Magenta.GetHashCode() ^ Yellow.GetHashCode() ^ Keycolor.GetHashCode());
 }