 | enumerateEnumerateT Method |
Creates a new
IListT, including only
b as an element.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static IList<T> Enumerate<T>(
this T b,
Nullable<int> count = 1
)
Parameters
- b
- Type: T
The element to make the IListT out of. - count (Optional)
- Type: SystemNullableInt32
How many elements the IListT should contain. for an infinite list.
Type Parameters
- T
- The type of the list to return
Return Value
Type:
IListTAn
IListT that includes only
b,
count times.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also