protected override void OnLoad(System.IO.IsolatedStorage.IsolatedStorageFileStream p_File) { string l_Check = StreamPersistence.ReadString(p_File, System.Text.Encoding.UTF8); if (l_Check != c_Check) { throw new DevAge.IO.InvalidDataException(); } int l_CurrentVersion = StreamPersistence.ReadInt32(p_File); OnLoad(p_File, l_CurrentVersion); }
protected override void OnSave(System.IO.IsolatedStorage.IsolatedStorageFileStream p_File) { StreamPersistence.Write(p_File, c_Check, System.Text.Encoding.UTF8); StreamPersistence.Write(p_File, Version); //custom values }