|
TypeConvertedValueExpressionAttributeGetPropertyUpdateValue Method
|
Gets the
Expression based value used to update a modeled property.
Namespace: GSF.ComponentModelAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntax
Remarks
The property update value is typically used to assign expression values to a modeled type. For example:
[TypeConvertedValueExpression("Form.maskedTextBoxMessageInterval.Text", typeof(string))]
public int MessageInterval { get; set; }
Would generate an expression of "Common.TypeConvertFromString(Form.maskedTextBoxMessageInterval.Text, typeof(int))"
which would be executed as part of an overall expression that looked like
Instance.MessageInterval = Common.TypeConvertFromString(Form.maskedTextBoxMessageInterval.Text, typeof(int))
when called from
UpdateProperties(IEnumerablePropertyInfo, TypeRegistry).
See Also