Suppose I have a class like the following:
class Book
{
public int id;
public string title;
}
And somewhere later I have an array Book[] books and now want an array of the titles string[] titles = {books[0].title, books[1].title, ..., books[n].title}. Is there an easier way than looping over the books array? Something like
string[] titles = books.getProperty(title)
Thanks in advance