M
Matt Jensen
Howdy
I'm hoping to put a variable inside a variable name.
In JavaScript, you would use eval(myvar+i) or something like that. What is
the C# equiavlent of eval? Or how do I do it in C# .NET?
Here is a very primitive example of what I mean.
for (int i;i<5;i++) {
int eval(myvar+i) = i;
}
Response.Write(myvar1);
Response.Write(myvar2);
Any ideas?
Thanks a lot
Matt
I'm hoping to put a variable inside a variable name.
In JavaScript, you would use eval(myvar+i) or something like that. What is
the C# equiavlent of eval? Or how do I do it in C# .NET?
Here is a very primitive example of what I mean.
for (int i;i<5;i++) {
int eval(myvar+i) = i;
}
Response.Write(myvar1);
Response.Write(myvar2);
Any ideas?
Thanks a lot
Matt