G
Guest
Well, I'm programming in vb.net and I'm developing a custom class (named
XmlEl) that inherits from the XmlElement class. It has a New routine that
receives an xmlelement and constructs the XmlEl instance. But in certain
occasions I need the machine to auto-convert an xmlelement to an xmlel,
rather than having to type all the time New XmlEl(XmlElement). As I've
noticed the CType function exists for that cause. For example, to convert an
xmlnode to a xmlelement, one could use Ctype(XmlNode, XmlElement). That's how
I want to use my class: CType(XmlElelement, XmlEl). So, how can I achieve it?
I also noticed in the SDK the class TypeConverter but I just don't know how
to use/apply it on my class. Any ideas or tips??
XmlEl) that inherits from the XmlElement class. It has a New routine that
receives an xmlelement and constructs the XmlEl instance. But in certain
occasions I need the machine to auto-convert an xmlelement to an xmlel,
rather than having to type all the time New XmlEl(XmlElement). As I've
noticed the CType function exists for that cause. For example, to convert an
xmlnode to a xmlelement, one could use Ctype(XmlNode, XmlElement). That's how
I want to use my class: CType(XmlElelement, XmlEl). So, how can I achieve it?
I also noticed in the SDK the class TypeConverter but I just don't know how
to use/apply it on my class. Any ideas or tips??