| CollectionExtensionsRepeatT Method |
Repeats the specified source multiple times.
Namespace: TomsToolbox.EssentialsAssembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
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 ICollectionT
- The collection to be repeated.
- count Int32
- The number of times to repeat the source sequence.
Type Parameters
- T
- The type of the items in the source collection.
Return Value
IEnumerableTAn
IEnumerableT that contains the repeated source sequence.
See Also