C# Class LibUsbDotNet.Main.PinnedHandle

Used for allocating a GCHandle to access the underlying pointer of an object.
Inheritance: IDisposable
Mostra file Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Frees and disposes the GCHandle for this pinned object.

PinnedHandle ( object objectToPin ) : System

Creates a pinned object.

Private Methods

Method Description
GetPinnedObjectHandle ( object objectToPin, GCHandle &pinnedObject ) : bool

Method Details

Dispose() public method

Frees and disposes the GCHandle for this pinned object.
public Dispose ( ) : void
return void

PinnedHandle() public method

Creates a pinned object.
public PinnedHandle ( object objectToPin ) : System
objectToPin object /// The object can be any blittable class, or array. If a is passed it will be used "as-is" and no pinning will take place. ///
return System