Disposable Class

Summary

Factory methods for creating lightweight IDisposable wrappers around cleanup actions.
Namespace
GitVersion.Helpers
Base Types
  • object
graph BT Type-->Base0["object"] Type["Disposable"] class Type type-node

Syntax

public static class Disposable

Fields

Name Constant Value Summary
Empty
A no-op disposable that does nothing when disposed.
static

Methods

Name Value Summary
Create(Action) IDisposable
Creates an IDisposable that invokes disposer when disposed.
static
Create<T>(T, Action) IDisposable<T>
Creates an IDisposable<T> that holds value and invokes disposer when disposed.
static
Dispose() void
GitHub