Example #1
0
        public override int GetHashCode()
        {
            int prime  = 31;
            int result = 1;

            result = prime * result + ((block == null) ? 0 : block.GetHashCode());
            result = prime * result + ((storageType == null) ? 0 : storageType.GetHashCode());
            result = prime * result + ((storageUuid == null) ? 0 : storageUuid.GetHashCode());
            return(result);
        }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash += 23 * StorageType.GetHashCode();
         hash += 23 * DataType.GetHashCode();
         if (IsNumeric)
         {
             hash += 23 * NumericValue.GetHashCode();
         }
         else
         {
             hash += 23 * StringValue.GetHashCode();
         }
         return(hash);
     }
 }