Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​Collections.​ICollection
Assembly: System.Runtime
Defines size, enumerators, and synchronization methods for all nongeneric collections.
Properties
public
int
Count
Gets the number of elements contained in the <see cref="T:System.Collections.ICollection" /> .
public
bool
IsSynchronized
Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe).
public
object
SyncRoot
Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" /> .
Methods
public
void
CopyTo​(Array array,
int index)
array
The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from <see cref="T:System.Collections.ICollection" /> . The <see cref="T:System.Array" /> must have zero-based indexing.
index
The zero-based index in <paramref name="array" /> at which copying begins.
Copies the elements of the <see cref="T:System.Collections.ICollection" /> to an <see cref="T:System.Array" /> , starting at a particular <see cref="T:System.Array" /> index.