I currently have a List<T>
made up of the following class:
int id { get; set; }
string title { get; set; }
string description { get; set; }
I want to create a List<string>
of only all the title's in the List
Which would be the best performance way to do this?
Edit My Description field averages 2k characters... I dont want that to slow down only getting titles.
Edit2
I am using MVC's Code first (Entity Framework). The List<T>
is stored in the _context, which I query from to get the data.
Edit3 IF possible .. Is there a way to get the Title AND ID ?