IDisposableExtensionsDisposeAllT(IEnumerableT) Method
Calls the Dispose method
on all the elements of the specified IEnumerableT.
Namespace: DevCase.Extensions.IDisposableExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void DisposeAll<T>(
this IEnumerable<T> enumerable
)
where T : IDisposable
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub DisposeAll(Of T As IDisposable) (
enumerable As IEnumerable(Of T)
)
Dim enumerable As IEnumerable(Of T)
enumerable.DisposeAll()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : IDisposable
static void DisposeAll(
IEnumerable<T>^ enumerable
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member DisposeAll :
enumerable : IEnumerable<'T> -> unit when 'T : IDisposable
No code example is currently available or this language may not be supported.
- enumerable IEnumerableT
-
The source IEnumerableT.
- T
-
The type.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).