public Key(TSource source, TIndex index) { Source = source; _index = index; unchecked { _hashCode = (Source.GetHashCode() * 397) ^ _index.GetHashCode(); } }
private int _GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + TSource.GetHashCode(); hash = hash * 23 + TDest.GetHashCode(); return(hash); } }
public override Int32 GetHashCode() { return(TSource.GetHashCode() * TDestionation.GetHashCode()); }