mirror of
https://github.com/Radarr/Radarr
synced 2025-12-23 08:44:49 +01:00
15 lines
No EOL
444 B
C#
15 lines
No EOL
444 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Xml.Linq;
|
|
|
|
namespace NzbDrone.Common.Extensions
|
|
{
|
|
public static class XmlExtentions
|
|
{
|
|
public static IEnumerable<XElement> FindDecendants(this XContainer container, string localName)
|
|
{
|
|
return container.Descendants().Where(c => c.Name.LocalName.Equals(localName, StringComparison.InvariantCultureIgnoreCase));
|
|
}
|
|
}
|
|
} |