Hi all, I am tryin to add data to my list object.
For a string, I just say, this.name = myDaraReader["test"]toTring(); How do I go about doing that for a list?
views:
142answers:
2
A:
List<string> nameList = new List<string>();
nameList.Add(myDaraReader["test"]toTring());
//Note: I just added what you typed above instead of fixing the syntax.
Here are a few links for reading on the two topics List and DataReader
Billy
2009-06-16 19:35:23