OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class DisposeHelper

Inheritance
System.Object
DisposeHelper
Namespace: OpenMod.Core.Helpers
Assembly: OpenMod.Core.dll
Syntax
public static class DisposeHelper : object

Methods

| Improve this Doc View Source

DisposeAll(IEnumerable<Object>)

Declaration
public static void DisposeAll(this IEnumerable<object> objects)
Parameters
Type Name Description
IEnumerable<System.Object> objects
| Improve this Doc View Source

DisposeAllAsync(IEnumerable<Object>)

Declaration
public static Task DisposeAllAsync(this IEnumerable<object> objects)
Parameters
Type Name Description
IEnumerable<System.Object> objects
Returns
Type Description
Task
| Improve this Doc View Source

DisposeSyncOrAsync(Object)

Declaration
public static Task DisposeSyncOrAsync(this object o)
Parameters
Type Name Description
System.Object o
Returns
Type Description
Task