public static void DoTest() { TempData data1 = new TempData(); data1.BoolData = false; data1.IntData = 77; data1.FloatData = 0.123f; data1.StringData = "bzzzz"; data1.EnumData = TempEnum.Third; data1.ObjectData.Name = "WTF"; data1.ObjectData.Value = "OMG"; RegistrySaver.Save(data1, registryRootName); TempData data2 = new TempData(); data2.ObjectData = null; RegistrySaver.Load(data2, registryRootName); }
public void Load(string key) { RegistrySaver.Load(this, key); }