System::Linq::Enumerable::Repeat method

Enumerable::Repeat method

Generates a sequence that contains one repeated value.

template<typename TResult> static SharedPtr<Collections::Generic::IEnumerable<TResult>> System::Linq::Enumerable::Repeat(const TResult &element, int32_t count)
ParameterDescription
TThe type of the value to be repeated in the result sequence.
ParameterTypeDescription
elementconst TResult&The value to be repeated.
countint32_tThe number of times to repeat the value in the generated sequence.

ReturnValue

An System::Collections::Generic::IEnumerable that contains a repeated value.

See Also