J
Julia
Hi,
I have a EmailMessage and a UrgentMessage objects both derived from IMessage
i also have BadMedia and GoodMedia objects both derived from IMedia
GoodMedia:IMedia
string Subject
string Body
BadMedia:IMedia
string Fine
the IMessage interface is as follows:
IMesssage
{
IMedia Media();
}
The problem is that the type of concrete Message to be create stored in
the XML document.
I would like to avoid parsing the document before desrialization
<Messsage type='EmailMessage'/>
<Media type="GoodMedia'>
<Subject></>
<Body></>
</Media>
</Messsage>
<Messsage type='UrgentMessage'/>
<Media type="BadMedia'>
<Fine></>
</Media>
</Messsage>
Thanks
I have a EmailMessage and a UrgentMessage objects both derived from IMessage
i also have BadMedia and GoodMedia objects both derived from IMedia
GoodMedia:IMedia
string Subject
string Body
BadMedia:IMedia
string Fine
the IMessage interface is as follows:
IMesssage
{
IMedia Media();
}
The problem is that the type of concrete Message to be create stored in
the XML document.
I would like to avoid parsing the document before desrialization
<Messsage type='EmailMessage'/>
<Media type="GoodMedia'>
<Subject></>
<Body></>
</Media>
</Messsage>
<Messsage type='UrgentMessage'/>
<Media type="BadMedia'>
<Fine></>
</Media>
</Messsage>
Thanks