Wraps one collection as a base class collection.
More...
Inherits ICollection< TOuter >.
|
| CollectionWrapper (ICollection< TInner > innerCollection) |
| Creates the wrapper around the innerCollection . More...
|
|
void | Add (TOuter item) |
| Adds one item . More...
|
|
void | Clear () |
| Removes all items.
|
|
bool | Contains (TOuter item) |
| Tests if item is in this collection. More...
|
|
void | CopyTo (TOuter[] array, int arrayIndex) |
| Copies all elements of this collection to the given array . More...
|
|
IEnumerator< TOuter > | GetEnumerator () |
| Gets the enumerator. More...
|
|
bool | Remove (TOuter item) |
| Removes the given item . More...
|
|
|
ICollection< TInner > | InnerCollection [get] |
| Gets the inner collection.
|
|
int | Count [get] |
| Gets the number of elements.
|
|
bool | IsReadOnly [get] |
| Gets whether this collection is read only.
|
|
Wraps one collection as a base class collection.
- Template Parameters
-
◆ CollectionWrapper()
Creates the wrapper around the innerCollection .
- Parameters
-
innerCollection | Collection to wrap. |
◆ Add()
Adds one item .
- Parameters
-
◆ Contains()
bool Contains |
( |
TOuter |
item | ) |
|
Tests if item is in this collection.
- Parameters
-
- Returns
◆ CopyTo()
void CopyTo |
( |
TOuter[] |
array, |
|
|
int |
arrayIndex |
|
) |
| |
Copies all elements of this collection to the given array .
- Parameters
-
◆ GetEnumerator()
IEnumerator< TOuter > GetEnumerator |
( |
| ) |
|
Gets the enumerator.
- Returns
◆ Remove()
bool Remove |
( |
TOuter |
item | ) |
|
Removes the given item .
- Parameters
-
- Returns