Summary
ReadOnlySlice enables the ability to work with a sequence within a region of memory and retains the position in within that region.
- Namespace
- Avalonia
.Utilities - Interfaces
- Base Types
-
- object
- ValueType
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["IReadOnlyList<T>"]
Type-.->Interface1["IReadOnlyCollection<T>"]
Type-.->Interface2["IEnumerable<T>"]
Type-.->Interface3["IEnumerable"]
Type["ReadOnlySlice<T>"]
class Type type-node
Syntax
[DebuggerTypeProxy(typeof(ReadOnlySlice<>.ReadOnlySliceDebugView))]
public readonly struct ReadOnlySlice<T> : ValueType, IReadOnlyList<T>, IReadOnlyCollection<T>,
IEnumerable<T>, IEnumerable
Attributes
Type | Description |
---|---|
Debugger |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the slice. |
Constructors
Properties
Methods
Name | Value | Summary |
---|---|---|
AsSlice |
ReadOnlySlice |
Returns a sub slice of elements that start at the specified index and has the specified number of elements.
|
GetEnumerator |
Immutable |
Returns an enumerator for the slice.
|
Skip |
ReadOnlySlice |
Bypasses a specified number of elements in the slice and then returns the remaining elements.
|
Take |
ReadOnlySlice |
Returns a specified number of contiguous elements from the start of the slice.
|
Operators
Name | Value | Summary |
---|---|---|
implicit operator |
ReadOnlySlice |
|
implicit operator |
ReadOnlySlice |