How to reload different objects by applicationsettingsbase?
<pre><code>// TestASettingsString and TestBSettingsString are byte[]
// TestASettings and TestBSettings are two objects to be saved
</code></pre>

<p>In SettingsSaving, TestASettings and TestBSettings are serialized into two seperate byte arrays, and then saved (in some other function)</p>

<p>My question is how to recover TestASettings and TestBSettings from TestASettingsString  and TestASettingsString seperately in loadsavedsettings?</p>

<p>That is when I do 
formatter.Deserialize(stream);       </p>

<p>How to seperate two totally different objects TestASettings and TestBSettings from formatter.Deserialize(stream)? </p>

<p>Thanks</p>

<pre><code>private void SettingsSaving(object sender, CancelEventArgs e)
    {

        try
        {
            var stream = new MemoryStream();
            var formatter = new BinaryFormatter();
            formatter.Serialize(stream, TestASettings);
    // TestASettingsString and TestBSettingsString are byte[]
            TestASettingsString = stream.ToArray();

            stream.Flush();
            formatter.Serialize(stream, TestBSettings);
            TestBSettingsString = stream.ToArray();   

            stream.Close();
        }
        catch (Exception ex)
        {
            Debug.WriteLine(ex);
        }
    }





private void LoadSavedSettings()
    {
        Reload();
        // how to get TestASettings and TestBSettings from TestASettingsString  and
        // TestASettingsString seperately?
    }
</code></pre>
