Click or drag to resize

TypeConvertedValueExpressionAttributeGetExpressionUpdateValue Method

Gets the modeled property based value used to update the Expression.

Namespace: GSF.ComponentModel
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public override string GetExpressionUpdateValue(
	PropertyInfo property
)
View Source

Parameters

property  PropertyInfo
Property from which attribute was derived.

Return Value

String
Expression based on source property.

Implements

IValueExpressionAttributeGetExpressionUpdateValue(PropertyInfo)
Remarks
The expression update value is typically used to assign modeled property values back to expressions allowing synchronization of a model with an external source, e.g., a user interface element. For example:
C#
[TypeConvertedValueExpression("Form.maskedTextBoxMessageInterval.Text", typeof(string))]
public int MessageInterval { get; set; }
Would generate an update expression of "Common.TypeConvertToString(Instance.MessageInterval)" which would be executed as part of an overall expression that looked like Form.maskedTextBoxMessageInterval.Text = Common.TypeConvertToString(Instance.MessageInterval) when called from UpdateExpressions(IEnumerablePropertyInfo, TypeRegistry).
See Also