Click or drag to resize
ListExtensionMethodsToRandomOrderT Method (IListT)
Enumerates the elements of the specified list in random order.

Namespace: Slash.Collections.Extensions
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public static List<T> ToRandomOrder<T>(
	this IList<T> list
)

Parameters

list
Type: System.Collections.GenericIListT
List to enumerate the items of.

Type Parameters

T
Type of list to enumerate the items of.

Return Value

Type: ListT
List with the same items in random order.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also