Created
November 4, 2015 21:06
-
-
Save wojciech-kulik/3ad0b8b4ae208ef92d8d to your computer and use it in GitHub Desktop.
[C#] WKFramework - reading from settings - http://wojciechkulik.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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