Click or drag to resize

CollectionExtensionsRepeatT Method

Repeats the specified source multiple times.

Namespace: TomsToolbox.Essentials
Assembly: 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
)

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

IEnumerableT
An IEnumerableT that contains the repeated source sequence.
See Also