suppose I have a struct of constants like
public struct myTableCols { public const int col1=0, col2=1,col3=3,...;}
and in the edit panel of controls filled with the value of column of selected row,
for each of those controls has the tag set to like
col1Tbx.Tag = "myTableCols.col1"
is there a way to
?int colNbr = eval(col1Tbx.Tag);
I'm using .net 4.7.2 in a windows form app
PS I know I can set the tag with actual int value but that makes the code difficult to change when the table columns are changed