Given an XElement is there a way to find out that element's index within the parent container?
XElement
I know there must be but I just can't figure it out!
Thanks!
Try e.ElementsBeforeSelf().Count()
e.ElementsBeforeSelf().Count()