Skip to main content

Defer

Useful class for C# 8 using declaration to defer action til outside of scope, e.g: using var defer = new Defer(() => response.Close());

Assembly: ServiceStack.Text.dll
View Source
Declaration
public struct Defer : IDisposable

Methods

Dispose()

View Source
Declaration
public void Dispose()

Implements

  • System.IDisposable