-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Closed
Copy link
Labels
area-Extensions-Configurationsource-generatorIndicates an issue with a source generator featureIndicates an issue with a source generator feature
Milestone
Description
An open question is whether to support overloads that take BinderOptions:
| BindNonPublicProperties | When false (the default), the binder will only attempt to set public properties. If true, the binder will attempt to set all non read-only properties.BindNonPublicProperties | When false (the default), the binder will only attempt to set public properties. If true, the binder will attempt to set all non read-only properties. |
|---|---|---|
| ErrorOnUnknownConfiguration | Gets or sets a value that indicates whether an exception is thrown when a configuration key doesn't have a matching property in the model object.ErrorOnUnknownConfiguration | Gets or sets a value that indicates whether an exception is thrown when a configuration key doesn't have a matching property in the model object. |
The issue is that source generators cannot support private properties; and it might not make sense to have partial support for the binder options.
Metadata
Metadata
Assignees
Labels
area-Extensions-Configurationsource-generatorIndicates an issue with a source generator featureIndicates an issue with a source generator feature