When constructing XML elements, it’s nice to have a concise API.
One of the features I’m implementing is the ability to easily move up to a parent element. There’s no cascade operator in C#, like you see in Dart.
Whilst exploring options, I found this works:
var e = new BvElement("iq"); Console.WriteLine(e._.Name);
I thought that was interesting – albeit obvious when you think about it 🙂
But on a serious note, looking for something suitable, appreciate suggestions.