Hello,
I have a variable (interface) on which I would call a personal method (call it "foo").
Code:
NodeList ch = ((Node)parentElement).GetChildNodes();
ch.toto();
My 1st reaction was to extend through a NodeList MyNodeList class where I implement "foo". Unfortunately, I can not extend it since NodeList interface. How to do this properly? I could do it via a static method that I spend the NodeList but not top.
Code:
NodeList ch = ((Node)parentElement).GetChildNodes();
Toto.toto(ch);
Thank you in advance for your help
Bookmarks