|  | HGlobal Methods | 
The HGlobal type exposes the following members.
 Methods
Methods| Name | Description | |
|---|---|---|
|  | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | 
|  | Finalize | Finalizes an instance of the HGlobal class. (Overrides ObjectFinalize) | 
|   | ToIntPtr | Performs a conversion from HGlobal to IntPtr. | 
 Extension Methods
Extension Methods| Name | Description | |
|---|---|---|
|   | ReportNotDisposedObject | Handle reporting of a not disposed object.
             Using this pattern is a good practice to avoid code where disposable objects get never disposed.
             Calling this method will raise the NotDisposedObject event if any event handler is attached;
             otherwise it will throw an InvalidOperationException if a debugger is attached.
             If the application does not run in a debugger and no event handler is attached, calling this method does nothing. (Defined by Disposable) | 
|  | SafeCastT | Performs a cast from object to T, avoiding possible null violations if T is a value type. (Defined by ObjectExtensions) | 
 See Also
See Also