예제 #1
0
        public static IRobustHash Hash(IRobustlyHashable hashable)
        {
            IRobustHash robustHash = new StrongHash();

            hashable.AccumulateRobustHash(robustHash);
            return(robustHash);
        }
예제 #2
0
		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;
		}
예제 #3
0
 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);
 }
예제 #4
0
		public static int GetHashCode(IRobustlyHashable hashable)
		{
			return RobustHashTools.Hash(hashable).GetHashCode();
		}
예제 #5
0
		public static IRobustHash Hash(IRobustlyHashable hashable)
		{
			IRobustHash robustHash = new StrongHash();
			hashable.AccumulateRobustHash(robustHash);
			return robustHash;
		}
예제 #6
0
 public static int GetHashCode(IRobustlyHashable hashable)
 {
     return(Hash(hashable).GetHashCode());
 }