Class AllOut
- Namespace
- AO
- Assembly
- CoreAssembly.dll
Utility functions
public static class AllOut
- Inheritance
-
AllOut
- Inherited Members
Methods
Defer(Action)
Defer an action until the end of the current scope.
public static AllOut.DeferImpl Defer(Action callback)
Parameters
callback
Action
Returns
Examples
{
using var _ = AllOut.Defer(() => Log.Info("End of scope"));
}
Defer<T>(Action<T>, T)
Defer an action until the end of the current scope with some data.
public static AllOut.DeferImpl<T> Defer<T>(Action<T> callback, T data)
Parameters
callback
Action<T>data
T
Returns
Type Parameters
T
Examples
{
using var _ = AllOut.Defer((string s) => Log.Info(s), "Hello");
}