Base class as propetry type in serialization

V

Victor Irzak

Hello group,

I have an interesting problem.

I have an abstract base class and two derived classes.

I have a property of the base type.

When my webcontrol serializes, I get
<BaseClassPropertyName [list derived class attributes]>

When I'm building a control, there is an attempt to use a default
constructor of the BASE class, which causes an error.
Is it call the default constructor of the derived class?


Thanks,


Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top