Class SequenceMarshalExtensions
Extends SequenceMarshal type.
Inherited Members
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.dll
Syntax
public static class SequenceMarshalExtensions
Methods
View SourceToEnumerator<T>(in ReadOnlySequence<T>)
Gets enumerator over all elements in the sequence.
Declaration
public static IEnumerator<T> ToEnumerator<T>(in ReadOnlySequence<T> sequence)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySequence<T> | sequence | The sequence to be converted. |
Returns
| Type | Description |
|---|---|
| IEnumerator<T> | The enumerator over all elements in the sequence. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements in the sequence. |