Firstly, apologies for the bad question title - not entirely sure if I am asking the correct thing.
Normally I can do the following to access a field:
In order to do this, you will need to use reflection.
public object GetField(object obj, string fieldName) {
var t = obj.GetType();
var field = t.GetField(fieldName);
return field.GetValue(obj);
}
somevalue = GetField(table, "someFieldName");
This works as long as the field is both instance and public. You'd need to modify the GetField method call slightly if the accessibility was less than public.