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