How to create a class that inherits from XElement by reference in C#?
I have an XML file from which I get an XElement element, then I try to create element of type R_Element that inherits from XElement, but when I do that, I can’t get all the ancestors of it.