FrameIT
FuncExtensions Class Reference

Static Public Member Functions

static Type GetGenericFuncType (int signatureCount)
 
static bool IsFuncType (Type type, out int signatureCount)
 
static Type CreateFuncType (Type[] signature)
 

Static Public Attributes

static readonly Type[] GenericFuncTypes
 

Static Private Attributes

static readonly IReadOnlyDictionary< Type, int > GenericFuncSignature
 

Member Function Documentation

◆ CreateFuncType()

static Type FuncExtensions.CreateFuncType ( Type[]  signature)
static

◆ GetGenericFuncType()

static Type FuncExtensions.GetGenericFuncType ( int  signatureCount)
static

◆ IsFuncType()

static bool FuncExtensions.IsFuncType ( Type  type,
out int  signatureCount 
)
static

Member Data Documentation

◆ GenericFuncSignature

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

◆ GenericFuncTypes

readonly Type [] FuncExtensions.GenericFuncTypes
static
Initial value:
= new Type[]
{
typeof(Func<>),
typeof(Func<,>),
typeof(Func<,,>),
typeof(Func<,,,>),
typeof(Func<,,,,>),
typeof(Func<,,,,,>),
typeof(Func<,,,,,,>),
typeof(Func<,,,,,,,>),
typeof(Func<,,,,,,,,>),
typeof(Func<,,,,,,,,,>),
typeof(Func<,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,,,,,>),
typeof(Func<,,,,,,,,,,,,,,,,>),
}

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