Method | Description | |
---|---|---|
Field ( |
Evaluate a field on the model object
|
|
Function ( |
Evaluate a function call on the model
|
|
HasItems ( |
Evaluate whether the collectionExpression has Count > 0 Can only be used on types that implement System.Collections.ICollection
|
|
Helper ( string expression, IHelperHandler helperHandler, |
||
LateBound ( string itemName, |
Evaluate a property at runtime against an unknown model type
|
|
Property ( |
Evaluate a property on the model object
|
|
Self ( |
Evaluate the model itself e.g. Value types
|
|
SubModel ( |
Evaluate an expression on a sub model, can be nested to traverse any depth of sub models
|
public static Field ( |
||
modelType | The type of the scoped model | |
fieldName | string | The name of the field |
location | ||
scope | ExpressionScope | The scope this expression evaluated in |
recursionLevel | int | |
return |
public static Function ( |
||
modelType | The type of the scoped model | |
functionName | string | The name of the function |
location | ||
scope | ExpressionScope | The scope this expression evaluated in |
return |
public static HasItems ( |
||
collectionExpression | An expression referencing a Collection | |
location | ||
recursionLevel | int | |
return |
public static Helper ( string expression, IHelperHandler helperHandler, |
||
expression | string | |
helperHandler | IHelperHandler | |
location | ||
return | HelperExpressionNode |
public static LateBound ( string itemName, |
||
itemName | string | The name of the proeprty that will be searched for |
location | ||
memberLocator | IMemberLocator | |
isCaseSensitive | bool | Indcates whether the expression should be evaluated with case sensitivity |
scope | ExpressionScope | The scope this expression evaluated in |
recursionLevel | int | |
return |
public static Property ( |
||
modelType | The type of the scoped model | |
propertyName | string | The name of the property |
location | ||
scope | ExpressionScope | The scope this expression evaluated in |
recursionLevel | int | |
return |
public static Self ( |
||
modelType | The type of the scoped model | |
location | ||
scope | ExpressionScope | The scope this expression evaluated in |
return |
public static SubModel ( |
||
modelExpression | An expression referencing the model to traverse to | |
subModelExpression | An expression to evaluate in the scope of the model that has been traversed to | |
location | ||
scope | ExpressionScope | The scope this expression evaluated in |
return | SubModelExpressionNode |