Skip to main content

Disposable.AnonymousDisposable

A private class in Alta.LifecycleManagement.Runtime, Alta.LifecycleManagement. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Disposable returned by Disposable.Create: runs an action the first time it's disposed.

Constructors​

MemberWhat it is
AnonymousDisposable(Action dispose)Creates a Disposable.AnonymousDisposable from dispose.

Fields​

2 private and internal fields
MemberWhat it is
private readonly Action disposeThe action to run.
private bool isDisposedWhether it has already run.

Methods​

MemberWhat it is
void Dispose()Runs the action, only the first time.