C# Класс Amido.SystemEx.Xml.Linq.XElementExtensions

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

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

Метод Описание
ElementExists ( System.Xml.Linq.XContainer element, string elementName ) : bool
SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : decimal
SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : decimal
SafeGetDecimalFromElement ( System.Xml.Linq.XElement element, string elementName ) : decimal
SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : int
SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : int
SafeGetIntFromElement ( System.Xml.Linq.XElement element, string elementName ) : int
SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : string
SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : string
SafeGetStringFromElement ( System.Xml.Linq.XElement element, string elementName ) : string

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

Метод Описание
GetAttribute ( System.Xml.Linq.XElement element, string attributeName ) : System.Xml.Linq.XAttribute
GetElement ( System.Xml.Linq.XElement element, string elementName ) : System.Xml.Linq.XElement
XElementExtensions ( ) : System

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

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

public static ElementExists ( System.Xml.Linq.XContainer element, string elementName ) : bool
element System.Xml.Linq.XContainer
elementName string
Результат bool

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

public static SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : decimal
element System.Xml.Linq.XElement
attributeName string
Результат decimal

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

public static SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : decimal
element System.Xml.Linq.XElement
elementName string
attributeName string
Результат decimal

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

public static SafeGetDecimalFromElement ( System.Xml.Linq.XElement element, string elementName ) : decimal
element System.Xml.Linq.XElement
elementName string
Результат decimal

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

public static SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : int
element System.Xml.Linq.XElement
attributeName string
Результат int

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

public static SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : int
element System.Xml.Linq.XElement
elementName string
attributeName string
Результат int

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

public static SafeGetIntFromElement ( System.Xml.Linq.XElement element, string elementName ) : int
element System.Xml.Linq.XElement
elementName string
Результат int

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

public static SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : string
element System.Xml.Linq.XElement
attributeName string
Результат string

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

public static SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : string
element System.Xml.Linq.XElement
elementName string
attributeName string
Результат string

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

public static SafeGetStringFromElement ( System.Xml.Linq.XElement element, string elementName ) : string
element System.Xml.Linq.XElement
elementName string
Результат string