Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //storing the values
- key.SetValue("Setting1", "This is our setting 1");
- key.SetValue("Setting2", "This is our setting 2");
- key.Close();
- //opening the subkey
- //if it does exist, retrieve the stored values
- if (key != null)
- {
- Console.WriteLine(key.GetValue("Setting1"));
- Console.WriteLine(key.GetValue("Setting2"));
- key.Close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement