Table of Contents

Class XElementExtensions

Namespace
NuGet.Packaging
Assembly
Chocolatey.NuGet.Packaging.dll
public static class XElementExtensions
Inheritance
XElementExtensions
Inherited Members

Methods

ElementsNoNamespace(XContainer, string)

public static IEnumerable<XElement> ElementsNoNamespace(this XContainer container, string localName)

Parameters

container XContainer
localName string

Returns

IEnumerable<XElement>

Except(XElement, XElement)

public static XElement Except(this XElement source, XElement target)

Parameters

source XElement
target XElement

Returns

XElement

GetOptionalAttributeValue(XElement, string, string)

public static string GetOptionalAttributeValue(this XElement element, string localName, string namespaceName = null)

Parameters

element XElement
localName string
namespaceName string

Returns

string