Wrong idea; there is no such thing. Also, even it something like that was possible, it would not make any sense.
You did not show any relationship between
lijst
and
aantalLijst
. They are just different instances of
System.IEnumerable
, two unrelated arrays or collections. Note that
foreach
loops are based on this interface. Please see:
IEnumerable Interface (System.Collections).
You can have two different unrelated loops. The cannot even be nested, unless you want to search for something in one collection/array, depending on current element of another collection/array.
—SA