Random.GetItems Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetItems<T>(ReadOnlySpan<T>, Int32) | |
GetItems<T>(ReadOnlySpan<T>, Span<T>) | |
GetItems<T>(T[], Int32) |
GetItems<T>(ReadOnlySpan<T>, Int32)
public:
generic <typename T>
cli::array <T> ^ GetItems(ReadOnlySpan<T> choices, int length);
public T[] GetItems<T> (ReadOnlySpan<T> choices, int length);
member this.GetItems : ReadOnlySpan<'T> * int -> 'T[]
Public Function GetItems(Of T) (choices As ReadOnlySpan(Of T), length As Integer) As T()
Type Parameters
- T
Parameters
- choices
- ReadOnlySpan<T>
- length
- Int32
Returns
- T[]
Applies to
GetItems<T>(ReadOnlySpan<T>, Span<T>)
public:
generic <typename T>
void GetItems(ReadOnlySpan<T> choices, Span<T> destination);
public void GetItems<T> (ReadOnlySpan<T> choices, Span<T> destination);
member this.GetItems : ReadOnlySpan<'T> * Span<'T> -> unit
Public Sub GetItems(Of T) (choices As ReadOnlySpan(Of T), destination As Span(Of T))
Type Parameters
- T
Parameters
- choices
- ReadOnlySpan<T>
- destination
- Span<T>
Applies to
GetItems<T>(T[], Int32)
public:
generic <typename T>
cli::array <T> ^ GetItems(cli::array <T> ^ choices, int length);
public T[] GetItems<T> (T[] choices, int length);
member this.GetItems : 'T[] * int -> 'T[]
Public Function GetItems(Of T) (choices As T(), length As Integer) As T()
Type Parameters
- T
Parameters
- choices
- T[]
- length
- Int32
Returns
- T[]