FrameIT
TupleExtensions Class Reference

Static Public Member Functions

static Type GetGenericTupleType (int argumentsCount)
 
static bool IsTupleType (Type type, out int signatureCount)
 
static Type CreateTupleType (Type[] signature)
 

Static Public Attributes

static readonly Type[] GenericTupleTypes
 

Static Private Attributes

static readonly IReadOnlyDictionary< Type, int > GenericFuncSignature
 

Member Function Documentation

◆ CreateTupleType()

static Type TupleExtensions.CreateTupleType ( Type[]  signature)
static

◆ GetGenericTupleType()

static Type TupleExtensions.GetGenericTupleType ( int  argumentsCount)
static

◆ IsTupleType()

static bool TupleExtensions.IsTupleType ( Type  type,
out int  signatureCount 
)
static

Member Data Documentation

◆ GenericFuncSignature

readonly IReadOnlyDictionary<Type, int> TupleExtensions.GenericFuncSignature
staticprivate
Initial value:
=
GenericTupleTypes.ToDictionary(t => t, t => t.IsGenericType ? t.GetGenericArguments().Count() : 0)
static readonly Type[] GenericTupleTypes
Definition: TupleExtensions.cs:7

◆ GenericTupleTypes

readonly Type [] TupleExtensions.GenericTupleTypes
static
Initial value:
= new Type[]
{
typeof(Tuple),
typeof(Tuple<>),
typeof(Tuple<,>),
typeof(Tuple<,,>),
typeof(Tuple<,,,>),
typeof(Tuple<,,,,>),
typeof(Tuple<,,,,,>),
typeof(Tuple<,,,,,,>),
typeof(Tuple<,,,,,,,>)
}

The documentation for this class was generated from the following file: