C# Class Telerik.Web.Mvc.Infrastructure.Implementation.Expressions.ExpressionFactory

Mostrar archivo Open project: juanplopes/simple-telerik

Public Properties

Property Type Description
EmptyStringExpression System.Linq.Expressions.ConstantExpression
ZeroExpression System.Linq.Expressions.ConstantExpression

Public Methods

Method Description
DefaltValueExpression ( Type type ) : Expression
LiftMemberAccessToNull ( Expression memberAccess ) : Expression
LiftMethodCallToNull ( Expression instance, MethodInfo method ) : Expression
MakeMemberAccess ( Expression instance, string memberName ) : Expression
MakeMemberAccess ( Expression instance, string memberName, bool liftMemberAccessToNull ) : Expression

Private Methods

Method Description
CreateConditionExpression ( Expression instance, Expression memberAccess, Expression defaultValue ) : Expression
CreateIfNullExpression ( Expression instance, Expression memberAccess, Expression defaultValue ) : Expression
ExtractMemberAccessExpressionFromLiftedExpression ( Expression liftedToNullExpression ) : Expression
GetInstanceExpressionFromExpression ( Expression memberAccess ) : Expression
IsNotNullConstantExpression ( Expression expression ) : bool
LiftMemberAccessToNullRecursive ( Expression memberAccess, Expression conditionalExpression, Expression defaultValue ) : Expression
LiftStringExpressionToEmpty ( Expression stringExpression ) : Expression
ShouldGenerateCondition ( Type type ) : bool

Method Details

DefaltValueExpression() public static method

public static DefaltValueExpression ( Type type ) : Expression
type System.Type
return System.Linq.Expressions.Expression

LiftMemberAccessToNull() public static method

public static LiftMemberAccessToNull ( Expression memberAccess ) : Expression
memberAccess System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

LiftMethodCallToNull() public static method

public static LiftMethodCallToNull ( Expression instance, MethodInfo method ) : Expression
instance System.Linq.Expressions.Expression
method System.Reflection.MethodInfo
return System.Linq.Expressions.Expression

MakeMemberAccess() public static method

public static MakeMemberAccess ( Expression instance, string memberName ) : Expression
instance System.Linq.Expressions.Expression
memberName string
return System.Linq.Expressions.Expression

MakeMemberAccess() public static method

public static MakeMemberAccess ( Expression instance, string memberName, bool liftMemberAccessToNull ) : Expression
instance System.Linq.Expressions.Expression
memberName string
liftMemberAccessToNull bool
return System.Linq.Expressions.Expression

Property Details

EmptyStringExpression public_oe static_oe property

public static ConstantExpression,System.Linq.Expressions EmptyStringExpression
return System.Linq.Expressions.ConstantExpression

ZeroExpression public_oe static_oe property

public static ConstantExpression,System.Linq.Expressions ZeroExpression
return System.Linq.Expressions.ConstantExpression