public static IRobustHash Hash(IRobustlyHashable hashable) { IRobustHash robustHash = new StrongHash(); hashable.AccumulateRobustHash(robustHash); return(robustHash); }
public static bool StaticEquals(IRobustlyHashable o0, object o1) { if (o1 is IRobustlyHashable) { IRobustHash robustHash = RobustHashTools.Hash(o0); IRobustHash obj = RobustHashTools.Hash((IRobustlyHashable)o1); return robustHash.Equals(obj); } return false; }
public static bool StaticEquals(IRobustlyHashable o0, object o1) { if (o1 is IRobustlyHashable) { IRobustHash robustHash = RobustHashTools.Hash(o0); IRobustHash obj = RobustHashTools.Hash((IRobustlyHashable)o1); return(robustHash.Equals(obj)); } return(false); }
public static int GetHashCode(IRobustlyHashable hashable) { return RobustHashTools.Hash(hashable).GetHashCode(); }
public static IRobustHash Hash(IRobustlyHashable hashable) { IRobustHash robustHash = new StrongHash(); hashable.AccumulateRobustHash(robustHash); return robustHash; }
public static int GetHashCode(IRobustlyHashable hashable) { return(Hash(hashable).GetHashCode()); }