© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
53 replies
palapapa

❔ What's the difference between `IConfiguration.Get` and `IConfiguration.Bind`?

The docs say
Get
Get
"Attempts to bind the configuration instance to a new instance of type T. If this configuration section has a value, that will be used. Otherwise binding by matching property names against configuration keys recursively." And
Bind
Bind
"Attempts to bind the given object instance to configuration values by matching property names against configuration keys recursively." The description of
IConfigurationSection.Value
IConfigurationSection.Value
is only "Gets or sets the section value."
What does
IConfigurationSection.Value
IConfigurationSection.Value
mean and what's the difference between
IConfiguration.Get
IConfiguration.Get
and
IConfiguration.Bind
IConfiguration.Bind
?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ What's the difference between `[Bind]` and `[BindNever]` when applied to a class?
C#CC# / help
3y ago
✅ What's the difference between ++variable and variable++?
C#CC# / help
6mo ago
❔ what is difference between _ and ()?
C#CC# / help
3y ago
✅ What's the difference between "Write" and "WriteLine" in C#
C#CC# / help
16mo ago