Click or drag to resize

ValueExpressionParserDeriveExpression Method

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

Namespace: GSF.ComponentModel
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.260-beta+cb466f216da12fb731bf5493e0294c87f9de1794
Syntax
public static string DeriveExpression(
	string expression,
	IValueExpressionAttribute valueExpressionAttribute,
	MemberInfo member,
	string typeName
)
View Source

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
ExceptionCondition
EvaluationOrderException Specified expression references the this keyword and must specify a positive EvaluationOrder.
ArgumentNullExceptionParameter expression cannot be null.
See Also