Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.52 KB

Assorted.Utils.Collections.EnumerableExtensions.Shuffle.md

File metadata and controls

46 lines (28 loc) · 1.52 KB

EnumerableExtensions.Shuffle<TSource>(this IEnumerable<TSource>) Method

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

Shuffles elements of the sequence.

Syntax

public static IEnumerable<TSource> Shuffle<TSource>(this IEnumerable<TSource> source)

Type Parameters

TSource
The type of elements in the source.

Parameters

source: IEnumerable<TSource>
A sequence of values.

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.