Note
This function will assign evaluated expression values to properties in an existing model.
public static Action<T> ApplyDefaultsForType<TValueExpressionAttribute>(
IEnumerable<PropertyInfo>? properties = null,
TypeRegistry? typeRegistry = null
)
where TValueExpressionAttribute : Attribute, IValueExpressionAttribute
Public Shared Function ApplyDefaultsForType(Of TValueExpressionAttribute As {Attribute, IValueExpressionAttribute}) (
Optional properties As IEnumerable(Of PropertyInfo) = Nothing,
Optional typeRegistry As TypeRegistry = Nothing
) As Action(Of T)public:
generic<typename TValueExpressionAttribute>
where TValueExpressionAttribute : Attribute, IValueExpressionAttribute
static Action<T>^ ApplyDefaultsForType(
IEnumerable<PropertyInfo^>^ properties = nullptr,
TypeRegistry^ typeRegistry = nullptr
)