C# Class NuGet.XElementExtensions

Exibir arquivo Open project: xero-github/Nuget

Public Methods

Method Description
ElementsNoNamespace ( this container, string localName ) : IEnumerable
ElementsNoNamespace ( this source, string localName ) : IEnumerable
Except ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
GetOptionalAttributeValue ( this element, string localName, string namespaceName = null ) : string
GetOptionalElementValue ( this element, string localName, string namespaceName = null ) : string
MergeWith ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
RemoveAttributes ( this element, bool>.Func condition ) : void

Private Methods

Method Description
AttributeEquals ( System.Xml.Linq.XAttribute source, System.Xml.Linq.XAttribute target ) : bool
Compare ( System.Xml.Linq.XElement target, System.Xml.Linq.XElement left, System.Xml.Linq.XElement right ) : int
CountMatches ( System.Xml.Linq.XElement left, System.Xml.Linq.XElement right, Func matcher ) : int
FindElement ( System.Xml.Linq.XElement source, System.Xml.Linq.XElement targetChild ) : System.Xml.Linq.XElement
HasConflict ( System.Xml.Linq.XElement source, System.Xml.Linq.XElement target ) : bool
MergeWith ( this source, System.Xml.Linq.XElement target, XElement>.IDictionary nodeActions ) : System.Xml.Linq.XElement

Method Details

ElementsNoNamespace() public static method

public static ElementsNoNamespace ( this container, string localName ) : IEnumerable
container this
localName string
return IEnumerable

ElementsNoNamespace() public static method

public static ElementsNoNamespace ( this source, string localName ) : IEnumerable
source this
localName string
return IEnumerable

Except() public static method

public static Except ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
source this
target System.Xml.Linq.XElement
return System.Xml.Linq.XElement

GetOptionalAttributeValue() public static method

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

GetOptionalElementValue() public static method

public static GetOptionalElementValue ( this element, string localName, string namespaceName = null ) : string
element this
localName string
namespaceName string
return string

MergeWith() public static method

public static MergeWith ( this source, System.Xml.Linq.XElement target ) : System.Xml.Linq.XElement
source this
target System.Xml.Linq.XElement
return System.Xml.Linq.XElement

RemoveAttributes() public static method

public static RemoveAttributes ( this element, bool>.Func condition ) : void
element this
condition bool>.Func
return void