  | ObjectHelperSafeDisposeT Method  | 
            Safely disposes the object.
            
 
Namespace: DigitalRuneAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntaxpublic static void SafeDispose<T>(
	this T obj
)
where T : class
<ExtensionAttribute>
Public Shared Sub SafeDispose(Of T As Class) ( 
	obj As T
)
public:
[ExtensionAttribute]
generic<typename T>
where T : ref class
static void SafeDispose(
	T obj
)
[<ExtensionAttribute>]
static member SafeDispose : 
        obj : 'T -> unit  when 'T : not struct
Parameters
- obj
 - Type: T
The object to dispose. Can be . 
Type Parameters
- T
 - The type of the object.
 
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
Remarks
See Also