Click or drag to resize

ValueExpressionParser<T> .ApplyDefaults Method

Overload List
  Name Description
Public method Static member ApplyDefaults(IEnumerable<PropertyInfo> , TypeRegistry) Generates a delegate that will update an instance of type T applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties. Target T instance is accepted as the parameter to the returned delegate Action<T>.
Public method Static member ApplyDefaults<TExpressionScope> (IEnumerable<PropertyInfo> , TypeRegistry) Generates a delegate that will update an instance of type T accepting a contextual IValueExpressionScope<T> object parameter applying any specified DefaultValueAttribute or DefaultValueExpressionAttribute instances that are declared on the type T properties. Target T instance needs to be assigned to the Instance property prior to call.
Top
See Also