SHARE
TWEET

Untitled

a guest Aug 19th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //storing the values  
  2.             key.SetValue("Setting1", "This is our setting 1");
  3.             key.SetValue("Setting2", "This is our setting 2");
  4.             key.Close();
  5.  
  6.             //opening the subkey  
  7.  
  8.  
  9.             //if it does exist, retrieve the stored values  
  10.             if (key != null)
  11.             {
  12.                 Console.WriteLine(key.GetValue("Setting1"));
  13.                 Console.WriteLine(key.GetValue("Setting2"));
  14.                 key.Close();
  15.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top