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