I'd like to create a class with public properties and functions that I
can map into a datatable with corresponding fields. For example:
ClassA
string Name {get;set;}
int Age{get;set;}
boolean IsEmployed()
MyDataTable
Name
Age
IsEmployed
Can attributes be used above each class property and function such as:
[Name="Age" DataType="System.Int32"]
and how would I then inspect that information to create the DataTable?
Thanks,
Brett