Search Results for

    Show / Hide Table of Contents

    Interface ICollection

    Defines size, enumerators, and synchronization methods for all nongeneric collections.

    Inherited Members
    IEnumerable.GetEnumerator()
    Namespace: System.Collections
    Assembly: mscorlib.dll
    Syntax
    public interface ICollection : IEnumerable

    Properties

    Count

    Gets the number of elements contained in the ICollection.

    Declaration
    int Count { get; }
    Property Value
    Type Description
    int

    The number of elements contained in the ICollection.

    IsSynchronized

    Gets a value indicating whether access to the ICollection is synchronized (thread safe).

    Declaration
    bool IsSynchronized { get; }
    Property Value
    Type Description
    bool

    true if access to the ICollection is synchronized (thread safe); otherwise, false.

    SyncRoot

    Gets an object that can be used to synchronize access to the ICollection.

    Declaration
    object SyncRoot { get; }
    Property Value
    Type Description
    object

    An object that can be used to synchronize access to the ICollection.

    Methods

    CopyTo(Array, int)

    Copies the elements of the ICollection to an Array, starting at a particular Array index.

    Declaration
    void CopyTo(Array array, int index)
    Parameters
    Type Name Description
    Array array

    The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.

    int index

    The zero-based index in array at which copying begins.

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX