TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dobby
NA
53
0
Method return class list, no idea how to use it effectively
Jul 8 2008 5:03 PM
hi all, i posted here eirlier about trying to get a method to return a list of a Class (list<T>).
i have managed to get it working, thanks to your help however now a new problem has spawned.
if i go (from another class)
instanceofMyClass.methodName();
where the method is supposed to return list<T>.
however i am left wiht the myClass.methodName, but no way to get the data from it, when i changed the method to return int or string it works fine, simply inputting into a msgbox. however i seem unable to extract that data from thelist, i was expecting to be able to do:
instanceofMyClass.methodName[].variableinT;
and be able to index the connents. except ofcourse i cant do that at all.
thanks for any help.
Reply
Answers (
1
)
Help, how do i return a list of a class from a method.
Help creating main() to test my simple C#