R
RayLopez99
If you have an event handler like this:
private void button1_Click(object sender, EventArgs e)
{
myObject = new ObjectClass();
}
Everytime you click on button1 a new "myObject" is being created, and
(this is my question) the old one is being destroyed (garbage
collected), right? Since this is not an "object creating
factory" (not a class returning an object) I assume that is the case.
RL
private void button1_Click(object sender, EventArgs e)
{
myObject = new ObjectClass();
}
Everytime you click on button1 a new "myObject" is being created, and
(this is my question) the old one is being destroyed (garbage
collected), right? Since this is not an "object creating
factory" (not a class returning an object) I assume that is the case.
RL