







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Replaces each item in a list with a given value. The list does not change in size.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public static void Fill<T>( IList<T> list, T value ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub Fill(Of T) ( _ list As IList(Of T), _ value As T _ ) |
| Visual C++ |
|---|
public: generic<typename T> static void Fill ( IList<T>^ list, T value ) |
Parameters
- list
- IList<(Of <T>)>
The list to modify.
- value
- T
The value to fill with.
Type Parameters
- T
- The type of items in the list.
Exceptions
| Exception | Condition |
|---|---|
| System..::ArgumentException | list is a read-only list. |
| System..::ArgumentNullException | list is null. |
See Also
Algorithms Class
Wintellect.PowerCollections Namespace
