Note
This function will assign evaluated expression values to properties in an existing model.
public static Action<T> UpdateProperties(
IEnumerable<PropertyInfo>? properties = null,
TypeRegistry? typeRegistry = null
)
Public Shared Function UpdateProperties (
Optional properties As IEnumerable(Of PropertyInfo) = Nothing,
Optional typeRegistry As TypeRegistry = Nothing
) As Action(Of T)
public:
static Action<T>^ UpdateProperties(
IEnumerable<PropertyInfo^>^ properties = nullptr,
TypeRegistry^ typeRegistry = nullptr
)
Gemstone.Expressions.Model.ValueExpressionParser.UpdateProperties = function(properties, typeRegistry);
This function is useful for generating a delegate to a compiled function that will update objects of type T where properties of the type of have been decorated with TypeConvertedValueExpressionAttribute attributes. The updated object will automatically have applied any defined update values as specified by the encountered attributes.
This method is the inverse call for UpdateExpressions(IEnumerablePropertyInfo, TypeRegistry). Internally the method simply calls UpdateInstanceForTypeTValueExpressionAttribute(IEnumerablePropertyInfo, TypeRegistry) for type TypeConvertedValueExpressionAttribute.