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)
- Not documented yet.Clear()
- Not documented yet.Contains(T)
- Not documented yet.CopyTo(PeterO.T<>[], int)
- Not documented yet.Count
- Gets a value not documented yet.Dispose()
- Not documented yet.GetEnumerator()
- Not documented yet.IndexOf(T)
- Not documented yet.Insert(int, T)
- Not documented yet.IsReadOnly
- Gets a value indicating whether this list is read only.Remove(T)
- Not documented yet.RemoveAt(int)
- Removes an item at a given index from the list.this[int]
- Not documented yet.
Parameters:
- <T>: Any object type that implements IDisposable.
DisposableList Constructor
public DisposableList();
Initializes a new instance of the class.
Count
public sealed int Count { get; }
Gets a value not documented yet.
Returns:
A value not documented yet.
IsReadOnly
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
.
Item
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.
Add
public sealed void Add( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Clear
public sealed void Clear();
Not documented yet.
Contains
public sealed bool Contains( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Return Value:
Either true
or false
.
CopyTo
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.
Dispose
public sealed void Dispose();
Not documented yet.
GetEnumerator
public sealed System.Collections.Generic.IEnumerator<T> GetEnumerator();
Not documented yet.
Return Value:
An IEnumerator(T) object.
IndexOf
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.
Insert
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.
Remove
public sealed bool Remove( T item);
Not documented yet.
Parameters:
- item: The parameter item is a `0 object.
Return Value:
Either true
or false
.
RemoveAt
public sealed void RemoveAt( int index);
Removes an item at a given index from the list.
Parameters:
- index: Zero-based index into the list.