mirror of https://github.com/dahall/Vanara.git
Changed GetHashValue to return raw value.
parent
a124fb4531
commit
f209be7395
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue