Changed GetHashValue to return raw value.

pull/119/head
dahall 2020-04-28 11:00:46 -06:00
parent a124fb4531
commit f209be7395
3 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ namespace Vanara.PInvoke
/// <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() => _value.GetHashCode();
public override int GetHashCode() => _value;
/// <summary>Gets the severity value from a 32-bit value.</summary>
/// <param name="hresult">The 32-bit raw HRESULT value.</param>

View File

@ -331,7 +331,7 @@ namespace Vanara.PInvoke
/// <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() => _value.GetHashCode();
public override int GetHashCode() => _value;
/// <summary>Gets the severity value from a 32-bit value.</summary>
/// <param name="ntstatus">The 32-bit raw NTStatus value.</param>

View File

@ -78,7 +78,7 @@ namespace Vanara.PInvoke
/// <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() => value.GetHashCode();
public override int GetHashCode() => unchecked((int)value);
/// <summary>Tries to extract a Win32Error from an exception.</summary>
/// <param name="exception">The exception.</param>