if i have a class that has attributes: attr01, attr02, ... attr16, and i want to check a same thing for each of these attributes it would be convenient if i can evaluate his string :
for(int i=1; i<=16; i++) {
if(eval["myClass.attr" + i] .....
}
i know System.Controls("...") from VBA hat evaluate strings to commands. Are there something like this in C# too?
thx in advance.
for(int i=1; i<=16; i++) {
if(eval["myClass.attr" + i] .....
}
i know System.Controls("...") from VBA hat evaluate strings to commands. Are there something like this in C# too?
thx in advance.