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

Parameters:

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:

Return Value:

A T object.

Add

public sealed void Add(
    T item);

Not documented yet.

Parameters:

Clear

public sealed void Clear();

Not documented yet.

Contains

public sealed bool Contains(
    T item);

Not documented yet.

Parameters:

Return Value:

Either true or false .

CopyTo

public sealed void CopyTo(
    PeterO.T<>[] array,
    int arrayIndex);

Not documented yet.

Parameters:

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:

Return Value:

A 32-bit signed integer.

Insert

public sealed void Insert(
    int index,
    T item);

Not documented yet.

Parameters:

Remove

public sealed bool Remove(
    T item);

Not documented yet.

Parameters:

Return Value:

Either true or false .

RemoveAt

public sealed void RemoveAt(
    int index);

Removes an item at a given index from the list.

Parameters:

Back to petero-csharp start page.