Mondeo
Well-known member
I have a class called vehicledataset which has 130 properties, all strings
I have a datatable with two columns, name and value. For example
Name Value
combined_make Ford
combined_model Mondeo ST24
All the items in my name column tie up to the property names in my class. I want to loop through the datatable (i know how to do this using the rows collection) and assign each value to the matching property name in my class.
But, I dont know how to refer to the property name dynamically.
Cheers
Ben
I have a datatable with two columns, name and value. For example
Name Value
combined_make Ford
combined_model Mondeo ST24
All the items in my name column tie up to the property names in my class. I want to loop through the datatable (i know how to do this using the rows collection) and assign each value to the matching property name in my class.
But, I dont know how to refer to the property name dynamically.
Cheers
Ben