RefEnumerable<T> Struct
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 items from arbitrary memory locations.
public readonly ref struct RefEnumerable<T>
type RefEnumerable<'T> = struct
Public Structure RefEnumerable(Of T)
- T
The type of items to enumerate.
- Inheritance
-
RefEnumerable<T>
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. |
Clear() |
Clears the contents of the current RefEnumerable<T> instance. |
Copy |
Copies the contents of this RefEnumerable<T> into a destination RefEnumerable<T> instance. |
Copy |
Copies the contents of this RefEnumerable<T> into a destination Span<T> instance. |
Dangerous |
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. |
Get |
Returns an enumerator that iterates through a collection. |
To |
Returns a |
Try |
Attempts to copy the source ReadOnlySpan<T> into the current RefEnumerable<T> instance. |
Try |
Attempts to copy the current RefEnumerable<T> instance to a destination RefEnumerable<T>. |
Try |
Attempts to copy the current RefEnumerable<T> instance to a destination Span<T>. |
Product | Versions |
---|---|
Windows Community Toolkit | 7.0.0, 7.1.0 |