private bool Equals(Pair pair, int proxyId1, int proxyId2) { return(pair.ProxyId1 == proxyId1 && pair.ProxyId2 == proxyId2); }