Well, ultimately what I'd like to accomplish is to avoid using the variable name in quotes. As some background, I find myself having to bind a lot of variables to textboxes on my forms, so I keep repeating code such as:
txtBox1.DataBindings.Add("Text", myTable, "MyColumn");
The problem here is that this can compile clean even if "MyColumn" is not spelled correctly, so the error is not discovered until run time. I'd rather be able to creating a binding method of my own, to which I can parse the variable to its name:
private void BindText(TextBox tb, String MyTable.MyColumn)
{
string s1 = getthecolumnname(MyTable.MyColumn)
tb.DataBindings.Add("Text", MyTable, s2)
}
This way if it compiles clean I know it's good.