Unosquare
    Show / Hide Table of Contents

    Class DisposableComponentCollection<T>

    Implements a collection of components that automatically disposes each component implementing .

    Each component in the collection may be given a unique name for later retrieval.

    Inheritance
    Object
    ComponentCollection<T>
    DisposableComponentCollection<T>
    Implements
    IComponentCollection<T>
    IReadOnlyList<T>
    IDisposable
    Inherited Members
    ComponentCollection<T>.Count
    ComponentCollection<T>.Named
    ComponentCollection<T>.WithSafeNames
    ComponentCollection<T>.Item[Int32]
    ComponentCollection<T>.Item[String]
    ComponentCollection<T>.GetEnumerator()
    ComponentCollection<T>.Add(String, T)
    ComponentCollection<T>.Lock()
    Namespace: EmbedIO.Utilities
    Syntax
    public class DisposableComponentCollection<T> : ComponentCollection<T>, IComponentCollection<T>, IReadOnlyList<T>, IDisposable
    Type Parameters
    Name Description
    T

    The type of components in the collection.

    Methods

    Dispose()

    Releases unmanaged and - optionally - managed resources.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    true to release both managed and unmanaged resources; true to release only unmanaged resources.

    Finalize()

    Finalizes an instance of the DisposableComponentCollection<T> class.

    Declaration
    protected void Finalize()

    Implements

    IComponentCollection<T>
    IReadOnlyList<>
    IDisposable

    See Also

    ComponentCollection<T>
    IComponentCollection<T>

    Comments

    Back to top Copyright © 2017-2019 Unosquare