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
Vincent
NA
1
0
list
access
Jul 21 2009 2:53 PM
How can i access a list element by "name".
I know how to make a Find, but I think it;s more neat to do it another way.
List
m_list = new List
();
.. populate list ...
Level l = List[0]; //this one works, i know. standard
l = list["final"]; //how about this one? assume Level class has a Property Name, or a private member.
This is much more workable than List.Find (lamda);
I know List can;t do it, but perhaps a derived version, or create my own iterator... that will accpet more than just index
Reply
Answers (
0
)
Authentication code in C#
Compare 2 int arrays