This question is locked. New answers and comments are not allowed.
I'm looking for a way to reference the property/field names available in class
So if I generated an 'Employee' class out of employee table, I would like to be able to retrieve any of the field names without directly typing it as a text.
For example, instead of
if grdView.Columns(i).Name = "EmployeeName" then
I can have
'Employee.ColumnNames.EmployeeName has a value of "EmployeeName"
if grdView.Columns(i).Name = Employee.ColumnNames.EmployeeName then
This for me reduces the chances of mistyping.