Skip to content

Instantly share code, notes, and snippets.

@wojciech-kulik
Created November 4, 2015 21:06
Show Gist options
  • Save wojciech-kulik/3ad0b8b4ae208ef92d8d to your computer and use it in GitHub Desktop.
Save wojciech-kulik/3ad0b8b4ae208ef92d8d to your computer and use it in GitHub Desktop.
[C#] WKFramework - reading from settings - http://wojciechkulik.pl
var person = new Person();
var settings = FileSettings("settings.dat");
settings.ReadProperties(person);
settings.ReadStaticProperties(typeof(Settings));
var lastUpdate = settings.ReadValue<DateTime>("LastUpdate");
var counter = settings.ReadValue<int>(SettingsKey.Counter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment