Show / Hide Table of Contents

Class ReadOnlySpanTuple<T1, T2>

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>
Namespace: Eco.Shared.Utils
Assembly: Eco.Shared.dll
Syntax
public sealed class ReadOnlySpanTuple<T1, T2> : ValueType
Type Parameters
Name Description
T1
T2

Constructors

ReadOnlySpanTuple(ReadOnlySpan<T1>, ReadOnlySpan<T2>)

Declaration
public ReadOnlySpanTuple(ReadOnlySpan<T1> item1, ReadOnlySpan<T2> item2)
Parameters
Type Name Description
System.ReadOnlySpan<T1> item1
System.ReadOnlySpan<T2> item2

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>

Methods

Deconstruct(out ReadOnlySpan<T1>, out ReadOnlySpan<T2>)

Declaration
public void Deconstruct(out ReadOnlySpan<T1> item1, out ReadOnlySpan<T2> item2)
Parameters
Type Name Description
System.ReadOnlySpan<T1> item1
System.ReadOnlySpan<T2> item2

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾