コード例 #1
0
        public bool Equals(AsciiString other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(other is object && this.length == other.length &&
                   this.GetHashCode() == other.GetHashCode() &&
                   this.AsciiSpan.SequenceEqual(other.AsciiSpan));
        }
コード例 #2
0
 public int HashCode(ICharSequence obj) => AsciiString.GetHashCode(obj);