ReadOnlyRefEnumerable<T>.DangerousCreate(T, Int32, Int32) 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.
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.