Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.85 KB

Assorted.Utils.Collections.EnumerableExtensions.RotateRight.md

File metadata and controls

50 lines (31 loc) · 1.85 KB

EnumerableExtensions.RotateRight<TSource>(this IEnumerable<TSource>, int) Method

Namespace: Assorted.Utils.Collections
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Rotates the sequence by a specific number of elements to right.

Syntax

public static IEnumerable<TSource> RotateRight<TSource>(this IEnumerable<TSource> source, int count)

Type Parameters

TSource
The type of elements in the source.

Parameters

source: IEnumerable<TSource>
A sequence of values.

count: int
The number of elements to rotate. A negative value rotates the sequence to left.

Return Value

IEnumerable<TSource>
An System.Collections.Generic.IEnumerable<T> where each of its elements are in the input sequence.

Exceptions

Exception Description
System.ArgumentNullException source is null.

Remarks

This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action.

See Also


This document is generated by DG.