Class ReadOnlySpanTuple<T1, T2, T3>
System.ValueTuple like tuple of span values. System.ReadOnlySpan<> can't be used with non ref structs and classes and so we do need to have own tuple type for it.
Inheritance
System.Object
ReadOnlySpanTuple<T1, T2, T3>
Assembly: Eco.Shared.dll
Syntax
public sealed class ReadOnlySpanTuple<T1, T2, T3> : ValueType
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
Constructors
ReadOnlySpanTuple(ReadOnlySpan<T1>, ReadOnlySpan<T2>, ReadOnlySpan<T3>)
Declaration
public ReadOnlySpanTuple(ReadOnlySpan<T1> item1, ReadOnlySpan<T2> item2, ReadOnlySpan<T3> item3)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<T1> |
item1 |
|
System.ReadOnlySpan<T2> |
item2 |
|
System.ReadOnlySpan<T3> |
item3 |
|
Fields
Item1
Declaration
public readonly ReadOnlySpan<T1> Item1
Field Value
Type |
Description |
System.ReadOnlySpan<T1> |
|
Item2
Declaration
public readonly ReadOnlySpan<T2> Item2
Field Value
Type |
Description |
System.ReadOnlySpan<T2> |
|
Item3
Declaration
public readonly ReadOnlySpan<T3> Item3
Field Value
Type |
Description |
System.ReadOnlySpan<T3> |
|
Methods
Deconstruct(out ReadOnlySpan<T1>, out ReadOnlySpan<T2>, out ReadOnlySpan<T3>)
Declaration
public void Deconstruct(out ReadOnlySpan<T1> item1, out ReadOnlySpan<T2> item2, out ReadOnlySpan<T3> item3)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<T1> |
item1 |
|
System.ReadOnlySpan<T2> |
item2 |
|
System.ReadOnlySpan<T3> |
item3 |
|
Extension Methods