mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-18 21:35:27 -04:00
16 lines
445 B
C#
16 lines
445 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Xml.Linq;
|
|
|
|
namespace NzbDrone.Common.Extensions
|
|
{
|
|
public static class XmlExtensions
|
|
{
|
|
public static IEnumerable<XElement> FindDecendants(this XContainer container, string localName)
|
|
{
|
|
return container.Descendants().Where(c => c.Name.LocalName.Equals(localName, StringComparison.InvariantCultureIgnoreCase));
|
|
}
|
|
}
|
|
}
|