G
Goose14
string SelectedSite
using (SiteLauncher SiteLaunch = new SiteLauncher()
{
SiteLaunch.ShowDialog();
SelectedSite = SiteLaunch.SelectedPokerRoom; //this is
a property that returns a string
}
My question is, if after the using block is over, will the SiteLaunch
object be able to dispose itself? Or does it stay alive because of the
open reference with SelectedSite. If this is the case, is there a
better way of doing this?
Thanks
using (SiteLauncher SiteLaunch = new SiteLauncher()
{
SiteLaunch.ShowDialog();
SelectedSite = SiteLaunch.SelectedPokerRoom; //this is
a property that returns a string
}
My question is, if after the using block is over, will the SiteLaunch
object be able to dispose itself? Or does it stay alive because of the
open reference with SelectedSite. If this is the case, is there a
better way of doing this?
Thanks
