Bearbeiten

Freigeben über


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

Definition

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

public static Microsoft.Toolkit.HighPerformance.Enumerables.ReadOnlyRefEnumerable<T> DangerousCreate (in T value, int length, int step);
static member DangerousCreate : 'T * int * int -> Microsoft.Toolkit.HighPerformance.Enumerables.ReadOnlyRefEnumerable<'T>
Public Shared Function DangerousCreate (ByRef value As T, length As Integer, step As Integer) As ReadOnlyRefEnumerable(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 ReadOnlyRefEnumerable<T> instance with the specified parameters.

Exceptions

Thrown when one of the parameters are negative.

Applies to