if i have
class foo
{
int a
int b
}
and a List<foo> myList
is there some short hand notation for to make a List<int> from eg myList[*].a
, ie pick out a
from each element and making a new list
clearly this can be done by iterating through myList, but seems to happen often and i was wondering if there's a shortcut notation
same question for array etc
thanks