ArrayDisposerExtensionGetDisposerT(T, FuncT, Boolean) Method

Extension method for creating WArrayDisposer for disposable T[] objects

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public static IArrayDisposer<T> GetDisposer<T>(
	this T[] arr,
	Func<T, bool> filter
)
where T : IDisposable

Parameters

arr  T
array of original T objects
filter  FuncT, Boolean
filter which will select required elements from original array

Type Parameters

T
original type of objects

Return Value

IArrayDisposerT
IArrayDisposerT object

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. 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).

See Also