XElement.Descendants () method accepts name of element to be find.
But it is case-sensitive is there any way to make it case-insensitive
You can use this:
element.Descendants() .Where(x => string.Compare(x.Name, filter, StringComparison.OrdinalIgnoreCase) == 0);
2.1m questions
2.1m answers
60 comments
57.0k users