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
Post a Comment