Editar

Compartilhar via


RefEnumerable<T> Struct

Definition

A refstruct that iterates items from arbitrary memory locations.

public readonly ref struct RefEnumerable<T>
type RefEnumerable<'T> = struct
Public Structure RefEnumerable(Of T)

Type Parameters

T

The type of items to enumerate.

Inheritance
RefEnumerable<T>

Properties

Item[Index]

Gets the element at the specified zero-based index.

Item[Int32]

Gets the element at the specified zero-based index.

Length

Gets the total available length for the sequence.

Methods

Clear()

Clears the contents of the current RefEnumerable<T> instance.

CopyTo(RefEnumerable<T>)

Copies the contents of this RefEnumerable<T> into a destination RefEnumerable<T> instance.

CopyTo(Span<T>)

Copies the contents of this RefEnumerable<T> into a destination Span<T> instance.

DangerousCreate(T, Int32, Int32)

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

Fill(T)

Fills the elements of this RefEnumerable<T> with a specified value.

GetEnumerator()

Returns an enumerator that iterates through a collection.

ToArray()

Returns a T array with the values in the target row.

TryCopyFrom(ReadOnlySpan<T>)

Attempts to copy the source ReadOnlySpan<T> into the current RefEnumerable<T> instance.

TryCopyTo(RefEnumerable<T>)

Attempts to copy the current RefEnumerable<T> instance to a destination RefEnumerable<T>.

TryCopyTo(Span<T>)

Attempts to copy the current RefEnumerable<T> instance to a destination Span<T>.

Applies to