|
-
October 6th, 2011, 08:06 AM
#1
List item name
Hi,
I have a list which is named:
List<TestList> TestList = new List<TestList>();
I am able to the value from it by using e.g.
string value = TestList[0].ListItem1
Is it possible to make ListItem1 variable?
so something like:
string variable = "ListItem1"
string value = TestList[0].(string)variable
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|