C# Class SharpTox.Core.SafeHandleZeroOrMinusOneIsInvalid

Provides a base class for Win32 safe handle implementations in which the value of either 0 or -1 indicates an invalid handle.
Inheritance: System.Runtime.InteropServices.SafeHandle
Mostrar archivo Open project: hexafluoride/Detox

Protected Methods

Method Description
SafeHandleZeroOrMinusOneIsInvalid ( bool ownsHandle ) : System

Initializes a new instance of the SafeHandleZeroOrMinusOneIsInvalid class, specifying whether the handle is to be reliably released.

Method Details

SafeHandleZeroOrMinusOneIsInvalid() protected method

Initializes a new instance of the SafeHandleZeroOrMinusOneIsInvalid class, specifying whether the handle is to be reliably released.
protected SafeHandleZeroOrMinusOneIsInvalid ( bool ownsHandle ) : System
ownsHandle bool true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended).
return System