Errors extending System.Xml.XmlNode

When I extend System.Xml.XmlNode I get the following error messages.

Any Ideas??

public class myNode : System.Xml.XmlNode {
     
     
}
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.CloneNode(bool)'
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.LocalName.get'
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.Name.get'
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.NodeType.get'
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.WriteContentTo(System.Xml.XmlWriter)'
'myNode' does not implement inherited abstract member 'System.Xml.XmlNode.WriteTo(System.Xml.XmlWriter)'
kolobcreekAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Nebulus_Connect With a Mentor Commented:
System.Xml.XmlNode is an abstract class.
If you want to extend this you must implement all abstract methods. Even if you put nothing in function but you must implement all abstract methods.

Ex:

public override System.Xml.XmlNode CloneNode(bool boolVar) {
  return null;
}    
0
 
kolobcreekAuthor Commented:
Still having trouble overiding variabls ie.

does not implement inherited abstract member 'System.Xml.XmlNode.Name.get'
0
 
TomEberhardCommented:
It's asking you to provide the "Name" property.
 
       public override string Name
       {
            get
            {
                return "The Name";
            }
        }
0
All Courses

From novice to tech pro — start learning today.