Class LazyDisposable<T>
Inheritance
System.Object
LazyDisposable<T>
Implements
System.IDisposable
Namespace: MonoMod.Utils
Assembly: MonoMod.Utils.dll
Syntax
public sealed class LazyDisposable<T> : Object, IDisposable
Type Parameters
Name | Description |
---|---|
T |
Constructors
LazyDisposable(T)
Declaration
public LazyDisposable(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance |
LazyDisposable(T, Action<T>)
Declaration
public LazyDisposable(T instance, Action<T> a)
Parameters
Type | Name | Description |
---|---|---|
T | instance | |
System.Action<T> | a |
Methods
Dispose()
Declaration
public void Dispose()
Events
OnDispose
Declaration
public event Action<T> OnDispose
Event Type
Type | Description |
---|---|
System.Action<T> |
Implements
System.IDisposable