ValueExpressionParserDeriveExpression Method

Derives an expression based on member info with any this keywords properly referencing Instance value.

Definition

Namespace: Gemstone.Expressions.Model
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.184 -- Release Build+1cef25ea4956740e5f38d3de7e6ae9c97e121c10
public static string DeriveExpression(
	string expression,
	IValueExpressionAttribute valueExpressionAttribute,
	MemberInfo member,
	string typeName
)

Parameters

expression  String
Expression to derive, typically from GetPropertyUpdateValue(PropertyInfo) or GetExpressionUpdateValue(PropertyInfo).
valueExpressionAttribute  IValueExpressionAttribute
Associated IValueExpressionAttribute instance.
member  MemberInfo
Associated MemberInfo instance, typically target property for valueExpressionAttribute.
typeName  String
Modeled type name, e.g., typeof<T>.FullName.

Return Value

String
Derived expression with any this keywords properly referencing Instance value.

Exceptions

EvaluationOrderException Specified expression references the this keyword and must specify a positive EvaluationOrder.
ArgumentNullExceptionParameter expression cannot be null.

See Also