Click or drag to resize

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
)

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: IEnumerableT
An IEnumerableT that contains the repeated source sequence.
See Also