C# Класс StaticAnalysis.XmlExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
ContainsChildElement ( this element, IEnumerable names ) : bool

Determines if the given element contains a child element with any of the provided names

ContainsChildElement ( this element, IEnumerable names, bool>.Func predicate ) : bool

Determines if the given element contains a child element with any of the provided names that satisfies the given predicate

ContainsChildElement ( this element, string name ) : bool

Determines if the given element contains a child element of the given name

ContainsChildElement ( this element, string name, bool>.Func predicate ) : bool

Determines if the given element contains a child element of the given name that satisfies the specified predicate

GetChildElement ( this parent, string name ) : System.Xml.Linq.XElement

Get the first child element with the given name

GetChildElement ( this parent, string name, bool>.Func predicate ) : System.Xml.Linq.XElement

Get the first child element with the given name that satisfies the given predicate

GetChildElements ( this parent, string name ) : IEnumerable

Get all child elements with the given name

GetChildElements ( this parent, string name, bool>.Func predicate ) : IEnumerable

Get all child elements with the given name that satisfy the given predicate

Описание методов

ContainsChildElement() публичный статический Метод

Determines if the given element contains a child element with any of the provided names
public static ContainsChildElement ( this element, IEnumerable names ) : bool
element this The element to search
names IEnumerable The child element names to search for
Результат bool

ContainsChildElement() публичный статический Метод

Determines if the given element contains a child element with any of the provided names that satisfies the given predicate
public static ContainsChildElement ( this element, IEnumerable names, bool>.Func predicate ) : bool
element this The element to search
names IEnumerable The child element names to search for
predicate bool>.Func An additional condition to check on descendant elements
Результат bool

ContainsChildElement() публичный статический Метод

Determines if the given element contains a child element of the given name
public static ContainsChildElement ( this element, string name ) : bool
element this The element to search
name string The child element name to search for
Результат bool

ContainsChildElement() публичный статический Метод

Determines if the given element contains a child element of the given name that satisfies the specified predicate
public static ContainsChildElement ( this element, string name, bool>.Func predicate ) : bool
element this The element to search
name string The child element name to search for
predicate bool>.Func An additional condition on descendant elements
Результат bool

GetChildElement() публичный статический Метод

Get the first child element with the given name
public static GetChildElement ( this parent, string name ) : System.Xml.Linq.XElement
parent this The element to search
name string The child element name to search for
Результат System.Xml.Linq.XElement

GetChildElement() публичный статический Метод

Get the first child element with the given name that satisfies the given predicate
public static GetChildElement ( this parent, string name, bool>.Func predicate ) : System.Xml.Linq.XElement
parent this The element to search
name string The child element name to search for
predicate bool>.Func Additional conditions over the desired child element
Результат System.Xml.Linq.XElement

GetChildElements() публичный статический Метод

Get all child elements with the given name
public static GetChildElements ( this parent, string name ) : IEnumerable
parent this The element to search
name string The child element name to search for
Результат IEnumerable

GetChildElements() публичный статический Метод

Get all child elements with the given name that satisfy the given predicate
public static GetChildElements ( this parent, string name, bool>.Func predicate ) : IEnumerable
parent this The element to search
name string The child element name to search for
predicate bool>.Func The additional condition to satisfy
Результат IEnumerable