C# Class Signum.Utilities.Reflection.TupleReflection

Mostrar archivo Open project: signumsoftware/framework

Public Methods

Method Description
IsTuple ( Type type ) : bool
TupleChainConstructor ( IEnumerable fieldExpressions ) : Expression
TupleChainProperty ( Expression expression, int index ) : Expression
TupleChainType ( IEnumerable tupleElementTypes ) : Type
TupleIndex ( PropertyInfo pi ) : int
TupleOf ( int numParameters ) : Type
TupleProperty ( Type type, int index ) : PropertyInfo

Private Methods

Method Description
IsTupleDefinition ( Type genericTypeDefinition ) : bool

Method Details

IsTuple() public static method

public static IsTuple ( Type type ) : bool
type System.Type
return bool

TupleChainConstructor() public static method

public static TupleChainConstructor ( IEnumerable fieldExpressions ) : Expression
fieldExpressions IEnumerable
return System.Linq.Expressions.Expression

TupleChainProperty() public static method

public static TupleChainProperty ( Expression expression, int index ) : Expression
expression System.Linq.Expressions.Expression
index int
return System.Linq.Expressions.Expression

TupleChainType() public static method

public static TupleChainType ( IEnumerable tupleElementTypes ) : Type
tupleElementTypes IEnumerable
return System.Type

TupleIndex() public static method

public static TupleIndex ( PropertyInfo pi ) : int
pi System.Reflection.PropertyInfo
return int

TupleOf() public static method

public static TupleOf ( int numParameters ) : Type
numParameters int
return System.Type

TupleProperty() public static method

public static TupleProperty ( Type type, int index ) : PropertyInfo
type System.Type
index int
return System.Reflection.PropertyInfo