Table of Contents

Class IEnumerableExtensions

Namespace
PAC.Extensions
public static class IEnumerableExtensions
Inheritance
IEnumerableExtensions
Inherited Members

Methods

RepeatIEnumerable<T>(IEnumerable<T>)

Creates an IEnumerable that repeats the given IEnumerable indefinitely, looping back round to the beginning when it reaches the end.

public static IEnumerable<T> RepeatIEnumerable<T>(IEnumerable<T> elements)

Parameters

elements IEnumerable<T>

Returns

IEnumerable<T>

Type Parameters

T

Repeat<T>(T)

Creates an IEnumerable that repeats the given element indefinitely.

public static IEnumerable<T> Repeat<T>(T element)

Parameters

element T

Returns

IEnumerable<T>

Type Parameters

T