Beispiel #1
0
        public override int GetHashCode()
        {
            var hash = MimeType.GetHashCode() * 31 + MimeSubType.GetHashCode();

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

            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (MimeType?.GetHashCode() ?? 0);
         hash = hash * 23 + (MimeSubType?.GetHashCode() ?? 0);
         hash = hash * 23 + (Parameters?.GetHashCode() ?? 0);
         return(hash);
     }
 }