Build up a variable name with a string

  • Thread starter Thread starter nicromi
  • Start date Start date
N

nicromi

Guest
Hi,

I wonder if there's a way (in c#) to build up a variable name
by the concatenation of two strings...For example

int intTest = 1;

string strTest = "strTest";

string strTest+intTest.toString() = "this is my new var";

Thanks in advance

Continue reading...
 
Back
Top