Ejemplo n.º 1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = DefiningType.GetHashCode() * 397;
         hash ^= StringComparer.Ordinal.GetHashCode(Name);
         return(hash);
     }
 }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = DefiningType.GetHashCode() * 397;
                hash ^= StringComparer.Ordinal.GetHashCode(Name);

                foreach (var parameter in Parameters)
                {
                    hash ^= parameter.GetHashCode();
                }

                return(hash);
            }
        }