Removed conversion operator to IntPtr completely

pull/21/head
David Hall 2018-09-04 13:39:21 -06:00
parent 6c2d04b25c
commit 20d3d2df0d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ namespace Vanara.InteropServices
/// <summary>Performs an explicit conversion from <see cref="GenericSafeHandle"/> to <see cref="IntPtr"/>.</summary>
/// <param name="h">The <see cref="GenericSafeHandle"/> instance.</param>
/// <returns>The value of the handle. Use caution when using this value as it can be closed by the disposal of the parent <see cref="GenericSafeHandle"/>.</returns>
public static explicit operator IntPtr(GenericSafeHandle h) => h.DangerousGetHandle();
//public static explicit operator IntPtr(GenericSafeHandle h) => h.DangerousGetHandle();
/// <summary>When overridden in a derived class, executes the code required to free the handle.</summary>
/// <returns>