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
William Snell
NA
15
0
Iterating through generic collections
Oct 25 2010 3:57 PM
I have a method that uses two generic lists. The first is a 'catch-all' list that holds id's for all projects, and inside the loop a test is run that adds the project weight to the other list. If this was all, everything would be ok, but it's not. I have to iterate through this for each user id and add their project weights to the same index of the list. So, instead of using the Add() method, I need to add amounts to the list's elements by index. However, I keep getting an ArgumentOutOfRangeException. The index is 0, and I'm not understanding where this is coming from.
Reply
Answers (
16
)
Beginner Problem with StreamWriter
When install win app. then .mdb file become readonly?