示例#1
0
        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;
		}
示例#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);
 }
		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;
		}
示例#6
0
 public static int GetHashCode(IRobustlyHashable hashable)
 {
     return(Hash(hashable).GetHashCode());
 }