I have got this class:
class foo
{
int val;
public int Val
{
set{ val = values; },
set{ val = values; }
}
}
I need to pass the property name to a DataBinding:
String propertyName = "Val";
ctrl.DataBindings.Add(propertyName, object, dataMember, true, DataSourceUpdateMode.Never);
I want to do something like this:
propertyName = typeof(foo).methods.Val.toString();