M
M
I am accessing properties in an object that has the field names
"a1desc", "a2desc", "a3desc", etc. I want to be able to access each of
them in a loop. Is it possible?
I know the following doesn't work, I'm just using it as an
illustration.
string value="";
for(int i=0;i<orderInfo.Length;i++){
value = orderInfo.a + i + desc;
}//for
"a1desc", "a2desc", "a3desc", etc. I want to be able to access each of
them in a loop. Is it possible?
I know the following doesn't work, I'm just using it as an
illustration.
string value="";
for(int i=0;i<orderInfo.Length;i++){
value = orderInfo.a + i + desc;
}//for