Modifica

Condividi tramite


RefEnumerable<T>.DangerousCreate(T, Int32, Int32) Method

Definition

Creates a new instance of the RefEnumerable<T> struct with the specified parameters.

public static Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<T> DangerousCreate (ref T value, int length, int step);
static member DangerousCreate : 'T * int * int -> Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<'T>
Public Shared Function DangerousCreate (ByRef value As T, length As Integer, step As Integer) As RefEnumerable(Of T)

Parameters

value
T

The reference to the first T item to map.

length
Int32

The number of items in the sequence.

step
Int32

The distance between items in the sequence to enumerate.

Returns

A RefEnumerable<T> instance with the specified parameters.

Exceptions

Thrown when one of the parameters are negative.

Applies to