/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { unchecked { var hashCode = StackPointer.GetHashCode(); hashCode = (hashCode * 397) ^ ReturnAddress.GetHashCode(); hashCode = (hashCode * 397) ^ (Module != null ? Module.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FunctionName != null ? FunctionName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Offset; return(hashCode); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> /// <inheritdoc /> public override int GetHashCode() => StackPointer.GetHashCode();