| CollectionExtensionsRepeatT Method |
Repeats the specified source multiple times.
Namespace:
TomsToolbox.Essentials
Assembly:
TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax public static IEnumerable<T> Repeat<T>(
ICollection<T> source,
int count
)
Public Shared Function Repeat(Of T) (
source As ICollection(Of T),
count As Integer
) As IEnumerable(Of T)
Parameters
- source
- Type: System.Collections.GenericICollectionT
The collection to be repeated. - count
- Type: SystemInt32
The number of times to repeat the source sequence.
Type Parameters
- T
- The type of the items in the source collection.
Return Value
Type:
IEnumerableTAn
IEnumerableT that contains the repeated source sequence.
See Also