/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing /// algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { int hash = HashCombiner.Initialize(); hash = HashCombiner.Hash(hash, First); hash = HashCombiner.Hash(hash, Second); return(hash); }
public override int GetHashCode() { HashCombiner hash = HashCombiner.Initialize(); hash.Add(base.GetHashCode()); hash.Add(target); return(hash.Value); }
public int GetHashCode(TaskPin obj) { HashCombiner combiner = HashCombiner.Initialize(); combiner.Add(obj.DataType); if (obj is FlaggedPin) { combiner.Add((obj as FlaggedPin).Flags); } return(combiner.Value); }
public void Setup() { _hash = HashCombiner.Initialize(); }