if I have
class foo
{
int a
int b
}
and a List<foo> myList
is there a short notation in order to make a List<int> from eg myList[*].a, i.e. select afrom each item and create a new list
it’s clear that this can be done by iterating through myList, but it seems to happen often, and I was wondering if there is a label notation
same question for array etc.
thanks
source
share