Casting from XmlNode to an inherited calss from XmlElement

P

Parham

Hello,
I have an inherited class from XmlElement with this name: XmlElementCF
I have added a function in XmlElementCF that returns a XmlNode, the
node type is Element. I can cast the returned node to XmlElement but
can not cast the returned node to XmlElementCF, I am getting an error
: Specified cast is not valid.
I want to cast the returned node to my inherited class XmlElementCF.
Please Help.
Thanks
Parham
 
R

Ronnie

Can you give more information on how the XmlNode returned from
XmlElementCF is instantiated? Maybe a code snippet.

Thanks
RDY
 

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

Top