IDS peak ICV v1.5.0
Loading...
Searching...
No Matches
DisposableList< T > Class Template Reference
Inheritance diagram for DisposableList< T >:

Public Member Functions

 DisposableList (List< T > list)
 Creates a new instance of DisposableList<T> with an existing list.
 
 DisposableList ()
 Creates an empty instance of DisposableList<T>.
 
void Dispose ()
 Disposes all elements.
 

Detailed Description

A list that automatically calls IDisposable.Dispose on all its elements when disposed.

Since
IDSImaging.Peak.ICV 1.3
Type Constraints
T :IDisposable 

Constructor & Destructor Documentation

◆ DisposableList() [1/2]

DisposableList ( List< T > list)
inline

Creates a new instance of DisposableList<T> with an existing list.

Since
IDSImaging.Peak.ICV 1.3

◆ DisposableList() [2/2]

DisposableList ( )
inline

Creates an empty instance of DisposableList<T>.

Since
IDSImaging.Peak.ICV 1.3

Member Function Documentation

◆ Dispose()

void Dispose ( )
inline

Disposes all elements.

Since
IDSImaging.Peak.ICV 1.3