コード例 #1
0
 public override int GetHashCode(ArraySegment <byte> key)
 {
     if (key.Array == null || key.Count == 0)
     {
         return(0);
     }
     return(ByteArrayComparer.GetHashCode(key.Array, key.Offset, key.Count));
 }
コード例 #2
0
 public override int GetHashCode(byte[] key)
 {
     if (key == null || key.Length == 0)
     {
         return(0);
     }
     return(ByteArrayComparer.GetHashCode(key));
 }