The old XmlElement class had a FirstChild property. What is the equivalent of XElement?
Visual Studio rejects .Element () ,. Elements () [0].
EDIT: Thanks for all the suggestions. I did not understand that I needed to import System.Linq to use the First method.
Using System.Linq .Elements.First
or
Using System.Linq Descendants.First
or
.FirstNode
Thalecress
source share