C# Class System.ObjectExtentions

Afficher le fichier Open project: Praeses/BackboneDemo

Méthodes publiques

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

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

IsNull() public static méthode

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

Methods() public static méthode

All methods for this object
public static Methods ( this foo ) : List
foo this this
Résultat List

Properties() public static méthode

All properties for this object
public static Properties ( this foo ) : List
foo this this
Résultat List

ToBool() public static méthode

Convert an object to a boolean
public static ToBool ( this foo ) : bool
foo this
Résultat bool

ToDateTime() public static méthode

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

ToDecimal() public static méthode

Convert an object into a decimal
public static ToDecimal ( this foo ) : decimal
foo this this
Résultat decimal

ToJson() public static méthode

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
Résultat string