Example #1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         return((base.GetHashCode() * 397) ^ KnownPrefixes.GetSequencedHashCode());
     }
 }
Example #2
0
 /// <inheritdoc/>
 public bool Equals(UrlProtocol other)
 {
     if (other == null)
     {
         return(false);
     }
     return(base.Equals(other) && KnownPrefixes.SequencedEquals(other.KnownPrefixes));
 }