C# Класс PredictiveCodeSuggestions.Extensions.XElementExtensions.XElementExtensions

The x element extensions.
Показать файл Открыть проект

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

Метод Описание
GetAttributeDateTime ( [ element, [ attributeName, System.DateTime defaultValue ) : System.DateTime

Gets the attribute date time.

GetAttributeDouble ( [ element, [ attributeName, double defaultValue ) : double

Gets the attribute double.

GetAttributeInt ( [ element, [ attributeName, int defaultValue ) : int

Gets the attribute int.

GetAttributeLong ( [ element, [ attributeName, long defaultValue ) : long

Gets the attribute int.

HasAttribute ( [ element, [ attributeName ) : bool

Determines whether the specified element has attribute.

Приватные методы

Метод Описание
Element ( [ element, int index ) : System.Xml.Linq.XElement
GetAttributeValue ( [ element, [ attributeName ) : string
GetAttributeValue ( [ element, [ attributeName, [ defaultValue ) : string
GetElementValue ( [ element, [ elementName ) : string

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

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

Gets the attribute date time.
public static GetAttributeDateTime ( [ element, [ attributeName, System.DateTime defaultValue ) : System.DateTime
element [ The element.
attributeName [ Name of the attribute.
defaultValue System.DateTime The default value.
Результат System.DateTime

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

Gets the attribute double.
public static GetAttributeDouble ( [ element, [ attributeName, double defaultValue ) : double
element [ The element.
attributeName [ Name of the attribute.
defaultValue double The default value.
Результат double

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

Gets the attribute int.
public static GetAttributeInt ( [ element, [ attributeName, int defaultValue ) : int
element [ The element.
attributeName [ Name of the attribute.
defaultValue int The default value.
Результат int

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

Gets the attribute int.
public static GetAttributeLong ( [ element, [ attributeName, long defaultValue ) : long
element [ The element.
attributeName [ Name of the attribute.
defaultValue long The default value.
Результат long

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

Determines whether the specified element has attribute.
public static HasAttribute ( [ element, [ attributeName ) : bool
element [ The element.
attributeName [ Name of the attribute.
Результат bool