Created
September 16, 2014 14:48
-
-
Save yuuichi-fujioka/844f8ee91f3e5aae38fb to your computer and use it in GitHub Desktop.
Keyable class
This file contains hidden or 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
public class MyKey : IEquatable<Item> | |
{ | |
public int no; | |
public bool Equals(Item other) | |
{ | |
return no == other.no; | |
} | |
public override int GetHashCode() | |
{ | |
return no.GetHashCode(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment