M
Martin
Hi!
I have a class like this
Class MyClass
{
Public MyClass()
{
// Doing stuff
}
private string myVar;
and a lot of more code.
}
Now in my Main program i declare this line
private MyClass myClass;
and in a procedure i do the folowing
private void dotest()
{
myClass = new MyClass();
}
Now the myClass is in memory att all time.
When i am thru with the myClass how do "disintegrate" the class, that is
remove it from memory,
releasign resourses?
Regards
Martin
I have a class like this
Class MyClass
{
Public MyClass()
{
// Doing stuff
}
private string myVar;
and a lot of more code.
}
Now in my Main program i declare this line
private MyClass myClass;
and in a procedure i do the folowing
private void dotest()
{
myClass = new MyClass();
}
Now the myClass is in memory att all time.
When i am thru with the myClass how do "disintegrate" the class, that is
remove it from memory,
releasign resourses?
Regards
Martin