C# Class PredictiveCodeSuggestions.Extensions.XElementExtensions.XElementExtensions

The x element extensions.
Mostra file Open project: JakobChristensen/Resharper.PredictiveCodeSuggestions

Public Methods

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

Private Methods

Method Description
Element ( [ element, int index ) : System.Xml.Linq.XElement
GetAttributeValue ( [ element, [ attributeName ) : string
GetAttributeValue ( [ element, [ attributeName, [ defaultValue ) : string
GetElementValue ( [ element, [ elementName ) : string

Method Details

GetAttributeDateTime() public static method

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.
return System.DateTime

GetAttributeDouble() public static method

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.
return double

GetAttributeInt() public static method

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.
return int

GetAttributeLong() public static method

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.
return long

HasAttribute() public static method

Determines whether the specified element has attribute.
public static HasAttribute ( [ element, [ attributeName ) : bool
element [ The element.
attributeName [ Name of the attribute.
return bool