R
Roel
Hello
I try to create an object with late binding. I must create an A object or a
B object. That depends on what the user choses in the GUI. Here you can see
how I try to do it but it will not work. Does anybody knows how to program
this structure ??
Many thx !!
object myObject;
if (String.Equals(RadioButtonList1.SelectedItem.Value,"ADT"))
{
myObject = new A();
}
else
{
myObject = new B();
}
I try to create an object with late binding. I must create an A object or a
B object. That depends on what the user choses in the GUI. Here you can see
how I try to do it but it will not work. Does anybody knows how to program
this structure ??
Many thx !!
object myObject;
if (String.Equals(RadioButtonList1.SelectedItem.Value,"ADT"))
{
myObject = new A();
}
else
{
myObject = new B();
}