You are looking for
MyList.Select(x=>x.Name).ToArray();
Since Select is an Extension method make sure to add that namespace by adding a
using System.Linq
to your file – then it will show up with Intellisense.
You are looking for
MyList.Select(x=>x.Name).ToArray();
Since Select is an Extension method make sure to add that namespace by adding a
using System.Linq
to your file – then it will show up with Intellisense.