Skip to content

Instantly share code, notes, and snippets.

@seesharper
Last active April 8, 2016 18:42
Show Gist options
  • Save seesharper/a1a8d1bb0f58bc998f27703b43e9dc8e to your computer and use it in GitHub Desktop.
Save seesharper/a1a8d1bb0f58bc998f27703b43e9dc8e to your computer and use it in GitHub Desktop.

Strongly typed configuration

var reader = new ConfigurationReader();
var config = reader.Read("/A/B/C").As<CommonConfig>();
string someValue = config.SomeValue;

Loosely typed configuration

var reader = new ConfigurationReader();
var config = reader.Read("/A/B/C").AsDictionary();
string someValue = config["Somevalue"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment