ReadOnlyRefEnumerable<T> Struct
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.
A ref
struct
that iterates readonly items from arbitrary memory locations.
public readonly ref struct ReadOnlyRefEnumerable<T>
type ReadOnlyRefEnumerable<'T> = struct
Public Structure ReadOnlyRefEnumerable(Of T)
Type Parameters
- T
The type of items to enumerate.
- Inheritance
-
ReadOnlyRefEnumerable<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
CopyTo(RefEnumerable<T>) |
Copies the contents of this ReadOnlyRefEnumerable<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 ReadOnlyRefEnumerable<T> struct with the specified parameters. |
GetEnumerator() |
Returns an enumerator that iterates through a collection. |
ToArray() |
Returns a |
TryCopyTo(RefEnumerable<T>) |
Attempts to copy the current ReadOnlyRefEnumerable<T> instance to a destination RefEnumerable<T>. |
TryCopyTo(Span<T>) |
Attempts to copy the current RefEnumerable<T> instance to a destination Span<T>. |
Operators
Implicit(RefEnumerable<T> to ReadOnlyRefEnumerable<T>) |