Remarks: This is typically used to pass the data store to controls that require a standard collection
Type parameters:
| T |
Constructors
Properties
IsFixedSize
#Gets a value indicating whether this instance is fixed size.
Value:
true if this instance is fixed size; otherwise, false.IsReadOnly
#Gets a value indicating whether this instance is read only.
Value:
true if this instance is read only; otherwise, false.IsSynchronized
#Gets a value indicating whether this instance is synchronized.
Value:
true if this instance is synchronized; otherwise, false.Indexers
this[]
#Gets or sets the item at the specified index. This collection is read-only so setting the item throws an exception.
Methods
Add
#Adds an item to the current collection.
Parameters:
| value (object) | The item to add to the current collection |
Add
#public void Add(T item)
Adds an item to the current collection. This collection is read-only so this throws an exception.
Parameters:
| item (T) | The item to add to the current collection. |
Clear
#public void Clear()
Clears all items from the collection. This collection is read-only so this throws an exception.
Contains
#Determines whether the current collection contains a specific value.
Parameters:
| value (object) | The object to locate in the current collection. |
Contains
#Determines whether the current collection contains a specific value.
Parameters:
| item (T) | The object to locate in the current collection. |
CopyTo
#Copies the contents of the collection to the specified array starting at the specified index
Parameters:
| array (T[]) | Array to copy to |
| arrayIndex (int) | Index in the array to start copying to |
IndexOf
#Determines the index of a specific item in the current instance.
Parameters:
| value (object) | Value to find |
Returns: Index of the item if found, or -1 if not in the collection
IndexOf
#Determines the index of a specific item in the collection.
Parameters:
| item (T) | Item to find the index |
Returns: The index of the item if found, or -1 if not found
Insert
#Inserts an item at the specified index. This collection is read-only so this throws an exception.
Parameters:
| index (int) | Index to add the item |
| item (T) | Item to add |
Remove
#Remove the specified item. This collection is read-only so this throws an exception.
Parameters:
| item (T) | Item to remove |
Remove
#Removes the first occurrence of an item from the current collection.
Parameters:
| value (object) | The item to remove from the current collection. |
RemoveAt
#Removes the item at the specified index. This collection is read-only so this throws an exception.
Parameters:
| index (int) | Index of the item to remove |