Click or drag to resize

ListExtensionsShuffleT Method

Shuffles an IList of type T (Does not create a copy)

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static void Shuffle<T>(
	this IList<T> list,
	bool ensureDifferentOrder = false
)

Parameters

list
Type: System.Collections.GenericIListT
IList to shuffle
ensureDifferentOrder (Optional)
Type: SystemBoolean
Ensures that the IList contents is always returned in a different order

Type Parameters

T
Type of IList

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