I know there is a simple way (like one line) to get a field from each item in a list and return it as an array of that field.
Does anyone know how to do this? I remember it being like writing a SQLish expression.
I know there is a simple way (like one line) to get a field from each item in a list and return it as an array of that field.
Does anyone know how to do this? I remember it being like writing a SQLish expression.
You’re referring to LINQ:
I’m not very familiar with it, but I think you’ll find what you need there.
thanks, LINQ is exactly what I could not remember