C# Class System.ObjectExtentions

Mostra file Open project: Praeses/BackboneDemo

Public Methods

Method Description
IsNotNull ( this foo ) : bool

Check to determine if the object is NOT null

IsNull ( this foo ) : bool

Check to determine if the object is null

Methods ( this foo ) : List

All methods for this object

Properties ( this foo ) : List

All properties for this object

ToBool ( this foo ) : bool

Convert an object to a boolean

ToDateTime ( this foo ) : System.DateTime

Convert an object into a DateTime

ToDecimal ( this foo ) : decimal

Convert an object into a decimal

ToJson ( this foo ) : string

Try to convert the current object into a json object

If the object cannot be converted then an exception will occur

Method Details

IsNotNull() public static method

Check to determine if the object is NOT null
public static IsNotNull ( this foo ) : bool
foo this
return bool

IsNull() public static method

Check to determine if the object is null
public static IsNull ( this foo ) : bool
foo this
return bool

Methods() public static method

All methods for this object
public static Methods ( this foo ) : List
foo this this
return List

Properties() public static method

All properties for this object
public static Properties ( this foo ) : List
foo this this
return List

ToBool() public static method

Convert an object to a boolean
public static ToBool ( this foo ) : bool
foo this
return bool

ToDateTime() public static method

Convert an object into a DateTime
public static ToDateTime ( this foo ) : System.DateTime
foo this this
return System.DateTime

ToDecimal() public static method

Convert an object into a decimal
public static ToDecimal ( this foo ) : decimal
foo this this
return decimal

ToJson() public static method

Try to convert the current object into a json object
If the object cannot be converted then an exception will occur
public static ToJson ( this foo ) : string
foo this this
return string