How to return a list using string array method ? For eg. i want to display a list of all the estates name using string array ?
noobprogrammerr
0
Newbie Poster
Recommended Answers
Jump to PostTry to do this way:
string[] arrString = { "a", "b", "c" }; List<String> lstString = new List<string>(arrString);
when your method needs to retun a List<T> then you do:
//...... private List<string> GetData() { string[] arrString = { "a", "b", "c" }; return new …
Jump to PostWhat do you mean?
All 6 Replies
Mitja Bonca
557
Nearly a Posting Maven
noobprogrammerr
0
Newbie Poster
Mitja Bonca
557
Nearly a Posting Maven
noobprogrammerr
0
Newbie Poster
thines01
401
Postaholic
Team Colleague
Featured Poster
thines01
401
Postaholic
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.