I don’t know if I understood you somewhere.
Not sure why you want to use LINQ specifically. This is perfectly clear:
For Each number as ContactCon In con.Numbers number.Primary = False Next
If for some reason you need a LINQ-like syntax, you can use List(T).ForEach :
con.Numbers.ForEach(Sub(n) n.Primary = False)
Of course, this is not a “real” LINQ, but then again, I'm not sure why this matters.
If you are really forced (?) To use LINQ, you can do:
con.Numbers.Select(Sub(n) n.Primary = False).ToList()
But of course, the code is nonsense. Do not do this - stick to what is clear and obvious, which in this case simply means a loop through the list.
EDIT
Fixed terrible abuse of Function
Henry source share