ArrayExtensions GetRandom T  Method (List T )Couchbase .NET SDK 2.1.0 Documentation

[Missing <summary> documentation for "M:Couchbase.Utils.ArrayExtensions.GetRandom``1(System.Collections.Generic.List{``0})"]

Namespace: Couchbase.Utils
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
public static T GetRandom<T>(
	this List<T> list
)

Parameters

list
Type: System.Collections.Generic List T 

[Missing <param name="list"/> documentation for "M:Couchbase.Utils.ArrayExtensions.GetRandom``1(System.Collections.Generic.List{``0})"]

Type Parameters
T

[Missing <typeparam name="T"/> documentation for "M:Couchbase.Utils.ArrayExtensions.GetRandom``1(System.Collections.Generic.List{``0})"]

Return Value

Type: T

[Missing <returns> documentation for "M:Couchbase.Utils.ArrayExtensions.GetRandom``1(System.Collections.Generic.List{``0})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type List T . 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