Didn't need one of the explicit operators afterall

pull/38/head
David Hall 2019-01-17 22:56:04 -08:00
parent 26bd550350
commit 120217f963
1 changed files with 0 additions and 5 deletions

View File

@ -430,11 +430,6 @@ namespace Vanara.PInvoke
/// <returns>The result of the conversion.</returns>
public static explicit operator HRESULT(bool value) => value ? S_OK : S_FALSE;
/// <summary>Performs an explicit conversion from <see cref="Win32Error"/> to <see cref="HRESULT"/>.</summary>
/// <param name="value">The value.</param>
/// <returns>The result of the conversion.</returns>
public static explicit operator HRESULT(Win32Error value) => value.ToHRESULT();
private static uint? ValueFromObj(object obj)
{
if (obj == null) return null;