Last active
August 29, 2015 14:02
-
-
Save DevinDong/8136d64317b972480345 to your computer and use it in GitHub Desktop.
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
/// <summary> | |
/// implement IEquatable(T) to prevent box/unbox. | |
/// </summary> | |
public struct DicKey : IEquatable<DicKey> | |
{ | |
public bool Equals(DicKey other) | |
{ | |
//some code here... | |
} | |
public override int GetHashCode() | |
{ | |
//some code here... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment