C# Class Amido.SystemEx.Xml.Linq.XElementExtensions

Datei anzeigen Open project: amido/Amido.PreProcessor

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ElementExists() public static method

public static ElementExists ( System.Xml.Linq.XContainer element, string elementName ) : bool
element System.Xml.Linq.XContainer
elementName string
return bool

SafeGetDecimalFromAttribute() public static method

public static SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : decimal
element System.Xml.Linq.XElement
attributeName string
return decimal

SafeGetDecimalFromAttribute() public static method

public static SafeGetDecimalFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : decimal
element System.Xml.Linq.XElement
elementName string
attributeName string
return decimal

SafeGetDecimalFromElement() public static method

public static SafeGetDecimalFromElement ( System.Xml.Linq.XElement element, string elementName ) : decimal
element System.Xml.Linq.XElement
elementName string
return decimal

SafeGetIntFromAttribute() public static method

public static SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : int
element System.Xml.Linq.XElement
attributeName string
return int

SafeGetIntFromAttribute() public static method

public static SafeGetIntFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : int
element System.Xml.Linq.XElement
elementName string
attributeName string
return int

SafeGetIntFromElement() public static method

public static SafeGetIntFromElement ( System.Xml.Linq.XElement element, string elementName ) : int
element System.Xml.Linq.XElement
elementName string
return int

SafeGetStringFromAttribute() public static method

public static SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : string
element System.Xml.Linq.XElement
attributeName string
return string

SafeGetStringFromAttribute() public static method

public static SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string elementName, string attributeName ) : string
element System.Xml.Linq.XElement
elementName string
attributeName string
return string

SafeGetStringFromElement() public static method

public static SafeGetStringFromElement ( System.Xml.Linq.XElement element, string elementName ) : string
element System.Xml.Linq.XElement
elementName string
return string