|
TypeConvertedValueExpressionAttributeGetExpressionUpdateValue Method
|
Gets the modeled property based value used to update the
Expression.
Namespace: GSF.ComponentModelAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.182-beta
Syntax 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:
[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