mscorlib(4.0.0.0) API with additions
|
Defines size, enumerators, and synchronization methods for all nongeneric collections. More...
Public Member Functions | |
void | CopyTo (Array array, int index) |
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index. More... | |
![]() | |
IEnumerator | GetEnumerator () |
Returns an enumerator that iterates through a collection. More... | |
Properties | |
int | Count [get] |
Gets the number of elements contained in the T:System.Collections.ICollection. More... | |
object | SyncRoot [get] |
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection. More... | |
bool | IsSynchronized [get] |
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (thread safe). More... | |
Defines size, enumerators, and synchronization methods for all nongeneric collections.
Definition at line 8 of file ICollection.cs.
void System.Collections.ICollection.CopyTo | ( | Array | array, |
int | index | ||
) |
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.
array | The one-dimensional T:System.Array that is the destination of the elements copied from T:System.Collections.ICollection. The T:System.Array must have zero-based indexing. |
index | The zero-based index in array at which copying begins. |
T:System.ArgumentNullException | array is null . |
T:System.ArgumentOutOfRangeException | index is less than zero. |
T:System.ArgumentException | array is multidimensional.-or- The number of elements in the source T:System.Collections.ICollection is greater than the available space from index to the end of the destination array .-or-The type of the source T:System.Collections.ICollection cannot be cast automatically to the type of the destination array . |
Implemented in System.Collections.ArrayList, System.Array, System.Security.Policy.Evidence, System.Collections.Hashtable, System.Collections.SortedList, System.Collections.BitArray, System.Collections.Specialized.ListDictionary, System.ComponentModel.PropertyDescriptorCollection, System.Collections.Queue, System.Collections.Specialized.OrderedDictionary, System.Collections.Stack, System.ComponentModel.AttributeCollection, System.Collections.Specialized.HybridDictionary, System.Security.PermissionSet, System.Collections.Specialized.NameValueCollection, System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection, System.Runtime.Remoting.Channels.BaseChannelObjectWithProperties, System.Net.CookieCollection, System.ComponentModel.TypeConverter.StandardValuesCollection, System.ComponentModel.ListSortDescriptionCollection, System.Configuration.SettingsPropertyCollection, System.Collections.DictionaryBase, System.Configuration.SettingsPropertyValueCollection, System.Text.RegularExpressions.MatchCollection, System.Text.RegularExpressions.GroupCollection, and System.Text.RegularExpressions.CaptureCollection.
|
get |
Gets the number of elements contained in the T:System.Collections.ICollection.
Definition at line 14 of file ICollection.cs.
|
get |
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (thread safe).
true
if access to the T:System.Collections.ICollection is synchronized (thread safe); otherwise, false
.Definition at line 33 of file ICollection.cs.
|
get |
Gets an object that can be used to synchronize access to the T:System.Collections.ICollection.
Definition at line 23 of file ICollection.cs.