i need to create a variable at runtime which checks for existing variables and creates new.
eg :: if var1 exists then create var2. like on.
and should be killed once the program is closed?
i need to create a variable at runtime which checks for existing variables and creates new.
eg :: if var1 exists then create var2. like on.
and should be killed once the program is closed?
Know the answer? Post it. Somebody with the same question will find it here.
Bechir BejaouiRank #144 · 15.9K pointsPosted May 10, 2008, 11:42 AM EDT
{
using(var2 oVar = new var2())
{
//TODO: Some code here with var2, of corse var2 must implement the IDisposable interface before
}
}
1 short reply
utsav rathour38 pointsPosted May 11, 2008, 3:05 AM EDT