Freigeben über


PexChoose.IndexValue<T>(String, T[]) Method

Definition

Gets an index value from a specified array.

public:
generic <typename T>
 static int IndexValue(System::String ^ name, cli::array <T> ^ values);
public static int IndexValue<T> (string name, T[] values);
static member IndexValue : string * 'T[] -> int
Public Shared Function IndexValue(Of T) (name As String, values As T()) As Integer

Type Parameters

T

The array type.

Parameters

name
String

The value's name.

values
T[]

An array of type T.

Returns

Returns an index value from the array.

Applies to