OK thanks for your input.
This is my whoe class in the UI assembly
public class Employees : EmployeesBL, ILoadableData, ILookUpObject
{
public Employees()
{
ConnectString = TBRSettings.Ins tance.Settings. ConnectionStrin g;
}
public Employees(strin g connString)
{
ConnectString = connString;
}
public DataSet GetRowFromID(in t ID)
{
return GetEmployee(ID) ;
}
public string GetFieldtype(st ring fieldname)
{
Type t = this.GetType();
BindingFlags bf = BindingFlags.De fault;
bf |= BindingFlags.No nPublic;
bf |= BindingFlags.Fl attenHierarchy;
bf |= BindingFlags.In stance;
foreach (FieldInfo field in t..GetFields(bf ))
{
if (field.Name.End sWith(fieldname ))
return field.Name.Subs tring(0, 4);
}
return "";
}
}
"Tom Spink" <ts****@gmail.c omwrote in message
news:eA******** ********@TK2MSF TNGP06.phx.gbl. ..
Rotsey wrote:
>you gave up on me Tom.
I had to reference the base class directly to get the private fields.
Don't know why your method doesn't work?
<snippedy-doo-dah>
>you gave up on me Tom.
I may be a student, but I have a job ;-)
>I had to reference the base class directly to get the private fields.
Don't know why your method doesn't work?
Can you post the code you were using?
--
Tom Spink
University of Edinburgh