Note
This function will assign current modeled property values back to expressions, this is often useful
when a model is being synchronized to an external source, e.g., user interface elements.
public static Action<T> UpdateExpressions(
IEnumerable<PropertyInfo>? properties = null,
TypeRegistry? typeRegistry = null
)
Public Shared Function UpdateExpressions (
Optional properties As IEnumerable(Of PropertyInfo) = Nothing,
Optional typeRegistry As TypeRegistry = Nothing
) As Action(Of T)
public:
static Action<T>^ UpdateExpressions(
IEnumerable<PropertyInfo^>^ properties = nullptr,
TypeRegistry^ typeRegistry = nullptr
)
Gemstone.Expressions.Model.ValueExpressionParser.UpdateExpressions = function(properties, typeRegistry);
This function is useful for generating a delegate to a compiled function that will execute expression assignments on objects of type T where properties of the type of have been decorated with TypeConvertedValueExpressionAttribute attributes. Note that the expression in the TypeConvertedValueExpressionAttribute attribute is expected to evaluate to a property such that it can be assigned the target type T property value.
This method is the inverse call for UpdateProperties(IEnumerablePropertyInfo, TypeRegistry).