Is it possible to access a struct's public members by their names / indices?
For example, if I have:
struct Person
{
int id;
string surname;
}
Person person;
Is it possible to get person.id
with just the string "id" or the integer index 0?
Or to get person.surname
with the string "surname" or the integer index 1?