List<> and indexing

I have a program I need to develop that uses multiple objects in sets of 12.  The objects are cylinder, scale, datatable, test, and possibly one or two others.  Cylinder1 needs to be paired with scale1 and so on up to 12 and the same goes for the other objects.  Generally, when I work with these objects, I need to loop through all of them and assign a value from one of them, say scale1.value, to another, say cylinder1.weight based on certain conditions.  

My assumption is that I can use the List<T> class to group all cylinder objects in one list and the same applies to the other objects I'm working with.  If I create the Lists in the correct order, an indexer will allow me to loop through the objects and get the correspondence correct, like this:

for(int listIndex=0; listIndex < cylinderList.Count; listIndex++)


Is this an effective (and safe) way to accomplish what I need to do?  Is there a better way?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

that is abosolutely a safe.effective way to do it and quire frankly far more efficient IMO than using an Array. just make sure you create the lists index property to line up with each other and it will be fine :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.