public override bool Equals(object obj) { if (obj != null && obj is IntersectionResult <T> ) { IntersectionResult <T> other = (IntersectionResult <T>)obj; return(Equals(ref this, ref other)); } return(base.Equals(obj)); }
private static bool Equals(ref IntersectionResult <T> v1, ref IntersectionResult <T> v2) { return(EqualityComparer <T> .Default.Equals(v1.location, v2.location) && (v1.result == v2.result)); }
public bool Equals(IntersectionResult <T> other) { return(Equals(this, other)); }