Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

IEqualityComparer gethashcode strings c#

public int GetHashCode(coordinate obj)
{
    if (obj == null) return 0;
    return obj.x.GetHashCode() ^ obj.y.GetHashCode();
}
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #IEqualityComparer #gethashcode #strings
ADD COMMENT
Topic
Name
7+1 =