interface ICollection

in global :: System . Collections

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


public void CopyTo( Array array, int index )

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

  • array The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
  • index The zero-based index in at which copying begins.

public int Count { get; }

Gets the number of elements contained in the .

  • Returns The number of elements contained in the .

public bool IsSynchronized { get; }

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

  • Returns if access to the is synchronized (thread safe); otherwise, .

public object SyncRoot { get; }

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

  • Returns An object that can be used to synchronize access to the .