Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
XElement.Descendants () メソッドは、検索する要素の名前を受け入れます。
しかし、大文字と小文字を区別します大文字と小文字を区別しないようにする方法はありますか
あなたはこれを使うことができます:
element.Descendants() .Where(x => string.Compare(x.Name, filter, StringComparison.OrdinalIgnoreCase) == 0);