Hi,
I'm trying to inherit an EntityClass. I want to override ToString().
E.g:
llblgen.Student
llblgen.Class
etc
I want to add some "student objects" into a combo (for example) and i need to override .ToString() to implement name and surname of the student into the combo.
I'm trying to do this:
public class MyStudent: llblgen.Student
{
public override string ToString()
{
return base.Name + " " + base.Surname;
}
}
but after i do something like this:
llblgen.Student stu = new Student(1);
mystudent mstdnt = (mystudent)stu;
and then, exception.
I need some help with this or a way to do it better.
Thank you.