// ReSharper disable NonReadonlyMemberInGetHashCode public override int GetHashCode() { int h = this.hash; if (0u >= (uint)h) { h = PlatformDependent.HashCodeAscii(this.value, this.offset, this.length); this.hash = h; } return(h); }
public static int GetHashCode(ICharSequence value) { switch (value) { case null: return(0); case AsciiString _: return(value.GetHashCode()); default: return(PlatformDependent.HashCodeAscii(value)); } }
public int AsciiStringHashCode() => PlatformDependent.HashCodeAscii( this.asciiString.Array, this.asciiString.Offset, this.asciiString.Count);
public int CharSequenceHashCode() => PlatformDependent.HashCodeAscii(this.stringValue);