Make XElementExtensions C#-friendly