Click or drag to resize

TypeConvertedValueExpressionAttributeGetPropertyUpdateValue Method

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

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

Parameters

property  PropertyInfo
Property from which attribute was derived.

Return Value

String
Expression based on source property.

Implements

IValueExpressionAttributeGetPropertyUpdateValue(PropertyInfo)
Remarks
The property update value is typically used to assign expression values to a modeled type. For example:
C#
[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