TypeConvertedValueExpressionAttributeGetExpressionUpdateValue Method

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

Definition

Namespace: Gemstone.Expressions.Model
Assembly: Gemstone.Expressions (in Gemstone.Expressions.dll) Version: 1.0.171 -- Release Build+912a0499557b7e3dab1c210a7947afeece80dcde
public override string GetExpressionUpdateValue(
	PropertyInfo property
)

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: [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