C# Class DataServer.XElementExt

Show file Open project: TNOCS/csTouch

Public Methods

Method Description
GetBool ( this element, string name, bool defaultValue = false ) : bool
GetColor ( this element, string name ) : Color
GetColor ( this element, string name, Color defaultColor ) : Color
GetColor ( this element, string name, string defaultColor ) : Color
GetDate ( this element, string name, System.DateTime defaultValue ) : System.DateTime
GetDouble ( this element, string name ) : Double
GetDouble ( this element, string name, double defaultValue ) : Double
GetGuid ( this element, string name ) : System.Guid
GetInt ( this element, string name, int defaultValue ) : int
GetLong ( this element, string name, long defaultValue ) : long
GetNullBool ( this element, string name ) : bool?
GetNullColor ( this element, string name ) : Color?
GetNullDouble ( this element, string name ) : Double?
GetNullInt ( this element, string name ) : int?
GetString ( this element, string name ) : string
GetString ( this element, string name, string defaultValue ) : string
GetUri ( this element, string name ) : Uri

Method Details

GetBool() public static method

public static GetBool ( this element, string name, bool defaultValue = false ) : bool
element this
name string
defaultValue bool
return bool

GetColor() public static method

public static GetColor ( this element, string name ) : Color
element this
name string
return Color

GetColor() public static method

public static GetColor ( this element, string name, Color defaultColor ) : Color
element this
name string
defaultColor Color
return Color

GetColor() public static method

public static GetColor ( this element, string name, string defaultColor ) : Color
element this
name string
defaultColor string
return Color

GetDate() public static method

public static GetDate ( this element, string name, System.DateTime defaultValue ) : System.DateTime
element this
name string
defaultValue System.DateTime
return System.DateTime

GetDouble() public static method

public static GetDouble ( this element, string name ) : Double
element this
name string
return Double

GetDouble() public static method

public static GetDouble ( this element, string name, double defaultValue ) : Double
element this
name string
defaultValue double
return Double

GetGuid() public static method

public static GetGuid ( this element, string name ) : System.Guid
element this
name string
return System.Guid

GetInt() public static method

public static GetInt ( this element, string name, int defaultValue ) : int
element this
name string
defaultValue int
return int

GetLong() public static method

public static GetLong ( this element, string name, long defaultValue ) : long
element this
name string
defaultValue long
return long

GetNullBool() public static method

public static GetNullBool ( this element, string name ) : bool?
element this
name string
return bool?

GetNullColor() public static method

public static GetNullColor ( this element, string name ) : Color?
element this
name string
return Color?

GetNullDouble() public static method

public static GetNullDouble ( this element, string name ) : Double?
element this
name string
return Double?

GetNullInt() public static method

public static GetNullInt ( this element, string name ) : int?
element this
name string
return int?

GetString() public static method

public static GetString ( this element, string name ) : string
element this
name string
return string

GetString() public static method

public static GetString ( this element, string name, string defaultValue ) : string
element this
name string
defaultValue string
return string

GetUri() public static method

public static GetUri ( this element, string name ) : Uri
element this
name string
return System.Uri