public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + CachedType.GetHashCode();
            hash = (hash * 7) + Parameters.GetHashCode();

            return(hash);
        }
Esempio n. 2
0
 //        public override int GetHashCode() => _id;
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = _id;
         hashCode = (hashCode * 397) ^ (_otherPossibleRepresentation != null ? _otherPossibleRepresentation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (_stringRepresentation != null ? _stringRepresentation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CachedType != null ? CachedType.GetHashCode() : 0);
         return(hashCode);
     }
 }