Click to See Complete Forum and Search --> : lease can you tell me, how exactly I can derive my custom class from XmlElement


zoltix
March 4th, 2005, 08:34 AM
Hi,

Please can you tell me, how exactly I can derive my custom class from XmlElement for addind some methods.

I get the error:
XmlElement is inaccessible due to its protection level.



Thank

darwen
March 4th, 2005, 08:58 AM
You can't. An XmlElement is meant to be created by an XmlDocument - and only by an XmlDocument - so it's constructor is declared internal meaning you can't derive from it.

Darwen.