Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configuration method that allows binding non-public properties #89

Closed
MrDave1999 opened this issue May 7, 2022 · 0 comments · Fixed by #95
Closed

Add a configuration method that allows binding non-public properties #89

MrDave1999 opened this issue May 7, 2022 · 0 comments · Fixed by #95
Labels
feature New feature or request
Milestone

Comments

@MrDave1999
Copy link
Owner

MrDave1999 commented May 7, 2022

Example:

var settings = new EnvBinder()
     .AllowBindNonPublicProperties() // configuration method
     .Bind<AppSettings>();

The AllowBindNonPublicProperties method will tell the binder to bind the non-public properties. By default, the binder only binds the public properties.

This issue is related to #73.

@MrDave1999 MrDave1999 added the feature New feature or request label May 7, 2022
@MrDave1999 MrDave1999 added this to the 2.1.0 milestone May 7, 2022
@MrDave1999 MrDave1999 added this to To Do in DotEnv v2.1.0 via automation May 7, 2022
DotEnv v2.1.0 automation moved this from To Do to Done May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant