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

Afficher le fichier Open project: amido/Amido.PreProcessor

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

SafeGetDecimalFromAttribute() public static méthode

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

SafeGetDecimalFromAttribute() public static méthode

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

SafeGetDecimalFromElement() public static méthode

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

SafeGetIntFromAttribute() public static méthode

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

SafeGetIntFromAttribute() public static méthode

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

SafeGetIntFromElement() public static méthode

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

SafeGetStringFromAttribute() public static méthode

public static SafeGetStringFromAttribute ( System.Xml.Linq.XElement element, string attributeName ) : string
element System.Xml.Linq.XElement
attributeName string
Résultat string

SafeGetStringFromAttribute() public static méthode

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

SafeGetStringFromElement() public static méthode

public static SafeGetStringFromElement ( System.Xml.Linq.XElement element, string elementName ) : string
element System.Xml.Linq.XElement
elementName string
Résultat string