configuration binding
Copying configuration values onto an object's properties by matching names, converting text to each property's type.
In more detail
The options pattern binds a whole configuration section onto an options class in one step. Names match case-insensitively, and a JSON number or the same digits in quotes both bind to an int.
Related terms
- options pattern — Binding a configuration section to a plain class with typed properties, validating it, and injecting it into services instead of reading raw strings.
- IConfiguration — The .NET interface for reading configuration, a merged set of key-value strings from settings files, environment variables and other providers.
Taught in
- The Options Pattern: Strongly Typed Configuration — Modern .NET Core, C# & Enterprise Microservices
- Environment Layering and User Secrets — Modern .NET Core, C# & Enterprise Microservices