IEqualityComparer gethashcode strings c#

72

IEqualityComparer gethashcode strings c# -

public int GetHashCode(coordinate obj)
{
    if (obj == null) return 0;
    return obj.x.GetHashCode() ^ obj.y.GetHashCode();
}

Comments

Submit
0 Comments