Summary
Represents a collection of values associated with a single key inside a
NameValuesCollection<TValue>.
Generic type parameters
| TValue |
The type of the values stored in this collection. |
Remarks
Implemented as a wrapper for a List which can be read-only or read-write as desired.
Constructors
|
Creates a wrapper for the specified list instance. The list may be null to represent an empty wrapper provided
that the wrapper is read-only. |
Instance methods
| void | | Adds the specified value to the collection. |
| void | | Clears all items from the collection. |
| bool | | Returns true iff the collection contains the specified item. |
| void | CopyTo(TValue[] array, int arrayIndex) | Copies all items in this collection to the specified array. |
| IEnumerator<TValue> | | Returns an enumerator to iterate over all items in this collection. |
| int | |
Returns the index of the specified item in this collection, or -1 if not found. |
| void | Insert(int index, TValue item) | Inserts the item at the specified position. |
| bool | | Removes the specified item from the collection. Returns true iff an item was removed. |
| void | | Removes the item at the specified position from the collection. |
| string | | Returns a string listing all values in the collection, comma-separated, inside square brackets. |
Static methods
Operators
Instance properties
| int | | Gets the count of items stored in this collection. |
| bool | | Returns true iff this collection is read-only (cannot be modified). |
| TValue | | Gets or sets the value at the specified index. |
| TValue | |
Gets the first value stored in this value collection. If the collection is empty, returns the default value for
TValue (i.e. null for all reference types). |