/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance.</returns> public override int GetHashCode() { int hash = SemanticName.GetHashCode(); hash = ((hash << 3) - hash) + SemanticIndex.GetHashCode(); hash = ((hash << 3) - hash) + Format.GetHashCode(); hash = ((hash << 3) - hash) + Offset.GetHashCode(); return(hash); }
/// <inheritdoc/> public override int GetHashCode() { unchecked { int hashCode = Location.GetHashCode(); hashCode = (hashCode * 397) ^ Format.GetHashCode(); hashCode = (hashCode * 397) ^ Offset.GetHashCode(); return(hashCode); } }
public readonly override int GetHashCode() => Format.GetHashCode() ^ Offset.GetHashCode() ^ ArraySize.GetHashCode();