How can I get a string[] of all different values of a list?
- by iTayb
I have a class that has an list<Book> in it, and those Book objects has many many properties.
string Subject is one of those properties.
I'd like to get an string[] type value that will include all different subjects from all over the list.
Is there an elegant way to do it, or I'll have to scan the whole list and enter each subject to it, then remove duplicates?