PeterO.DisposableList-T
## PeterO.DisposableList
public sealed class DisposableList<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.IEnumerable, System.IDisposable where T : System.IDisposableT
Holds a list of disposable objects, which can all be disposed at once when this object is disposed.
Member Summary
[Add(T)](#Add_T)
- Not documented yet.[Clear()](#Clear)
- Not documented yet.[Contains(T)](#Contains_T)
- Not documented yet.[CopyTo(PeterO.T<>[], int)](#CopyTo_PeterO_T_int)
- Not documented yet.[Count](#Count)
- Gets a value not documented yet.[Dispose()](#Dispose)
- Not documented yet.[GetEnumerator()](#GetEnumerator)
- Not documented yet.[IndexOf(T)](#IndexOf_T)
- Not documented yet.[Insert(int, T)](#Insert_int_T)
- Not documented yet.[IsReadOnly](#IsReadOnly)
- Gets a value indicating whether this list is read only.[Remove(T)](#Remove_T)
- Not documented yet.[RemoveAt(int)](#RemoveAt_int)
- Removes an item at a given index from the list.[this[int]](#this_int)
- Not documented yet.
Parameters:
- <T>: Any object type that implements IDisposable.
### DisposableList Constructor
public DisposableList();
Initializes a new instance of the class.
public sealed int Count { get; }
Gets a value not documented yet.
Returns:
A value not documented yet.
public sealed bool IsReadOnly { get; }
Gets a value indicating whether this list is read only.
Returns:
true
if this list is read only; otherwise, false
.
public sealed T this[int item] { get; set; }
Not documented yet.
Parameters:
- item: The parameter item is a 32-bit signed integer.
Return Value:
A T object.
public sealed void Add( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
public sealed void Clear();
Not documented yet.
public sealed bool Contains( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Return Value:
Either true
or false
.
public sealed void CopyTo( PeterO.T<>[] array, int arrayIndex);
Not documented yet.
Parameters:
-
array: The parameter array is a `0[] object.
-
arrayIndex: The parameter arrayIndex is a 32-bit signed integer.
public sealed void Dispose();
Not documented yet.
public sealed System.Collections.Generic.IEnumerator<T> GetEnumerator();
Not documented yet.
Return Value:
An IEnumerator(T) object.
public sealed int IndexOf( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Return Value:
A 32-bit signed integer.
public sealed void Insert( int index, T item);
Not documented yet.
Parameters:
-
index: The parameter index is a 32-bit signed integer.
-
item: The parameter item is a `0 object.
public sealed bool Remove( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Return Value:
Either true
or false
.
public sealed void RemoveAt( int index);
Removes an item at a given index from the list.
Parameters:
- index: Zero-based index into the list.