Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. var myConfiguration = new Dictionary<string, string>
  2. {
  3. {"Age", "18"},
  4. {"Nested:Property", "1"},
  5. };
  6.  
  7. var configuration = new ConfigurationBuilder()
  8. .AddInMemoryCollection(myConfiguration)
  9. .Build();
  10.  
  11. // Pass configuration in as IConfiguration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement