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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
utsav rathourPosted May 11, 2008, 7:05 AM
Bechir BejaouiPosted May 10, 2008, 3:42 PM
{
using(var2 oVar = new var2())
{
//TODO: Some code here with var2, of corse var2 must implement the IDisposable interface before
}
}