LibUsbDotNet/LibUsbDotNet/Generated/Device.cs
/// <summary>
/// Creates a new <see cref="Device"/> from a <see cref="IntPtr"/>.
/// </summary>
/// <param name="unsafeHandle">
/// The underlying <see cref="IntPtr"/>
/// </param>
/// <param name="ownsHandle">
/// <see langword="true"/> to reliably release the handle during the finalization phase; <see langword="false"/> to prevent reliable release (not recommended).
/// </param>
/// <returns>
/// </returns>
Creates a new  from a .
Creates a new from a .
public static Device DangerousCreate(IntPtr unsafeHandle, bool ownsHandle)
        {
            Device safeHandle = new Device(ownsHandle);
            safeHandle.SetHandle(unsafeHandle);
            return safeHandle;
        }
public static Device DangerousCreate ( IntPtr unsafeHandle , bool ownsHandle ) { Device safeHandle = new Device ( ownsHandle ) ; safeHandle . SetHandle ( unsafeHandle ) ; return safeHandle ; }
Creates a new  from a .
Creates a new from a .
None
unsafeHandle
IntPtr
None
ownsHandle
bool
to reliably release the handle during the finalization phase;  to prevent reliable release (not recommended).
to reliably release the handle during the finalization phase ; to prevent reliable release ( not recommended ) .