Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myConfiguration = new Dictionary<string, string>
- {
- {"Age", "18"},
- {"Nested:Property", "1"},
- };
- var configuration = new ConfigurationBuilder()
- .AddInMemoryCollection(myConfiguration)
- .Build();
- // Pass configuration in as IConfiguration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement