myesn

myEsn2E9

hi
github

Linq: Enumerable.Repeat

Introduction#

Generate a sequence containing a repeated value.

public static System.Collections.Generic.IEnumerable<TResult> Repeat<TResult> (TResult element, int count);

Where:

  • element is the value to be repeated
  • count is the number of times to repeat the value

Example#

Repeat the number 2 five times:

Enumerable.Repeat(2, 5);

image

Reference#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.