for loop - VB.Net - Looking for Design Pattern - For Each Instead of For with index -


using vb.net, i'm looking best practices in dealing following idiom:

for integer = 0 o1.count - 1   o1(i).x = o2(i).x next 

what want vb.net doesn't offer -- additional , simultaneous iterators on each statements.

for each m1 c1 in o1, m2 c2 in o2   m1.x = m2.x next 

i'm interested in both linq , non-linq recommendations, comments copy method design, comparisions c# or other languages.

i'm sure actual real world situation more complicated example have shown, thought worth mentioning that, if doing trying copy entire list of items 1 list another, can this:

dim list2 = new list(of object)(list1) 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -