Ann,
No, you can not do this. However, you can create a Hashtable or
Dictionary<string, intwhich you can key using the strings "temp0",
"temp1", etc, etc.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"ann" <an*********@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
Is there any way to dynamically creat variables?
In other words, I want to be able to do something like that:
for(int i=0; i<size; i++){
string temp+i = i*3;
}
I want my variables to be temp0, temp1, temp2, etc.