C# Класс System.ObjectExtentions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

IsNotNull() публичный статический метод

Check to determine if the object is NOT null
public static IsNotNull ( this foo ) : bool
foo this
Результат bool

IsNull() публичный статический метод

Check to determine if the object is null
public static IsNull ( this foo ) : bool
foo this
Результат bool

Methods() публичный статический метод

All methods for this object
public static Methods ( this foo ) : List
foo this this
Результат List

Properties() публичный статический метод

All properties for this object
public static Properties ( this foo ) : List
foo this this
Результат List

ToBool() публичный статический метод

Convert an object to a boolean
public static ToBool ( this foo ) : bool
foo this
Результат bool

ToDateTime() публичный статический метод

Convert an object into a DateTime
public static ToDateTime ( this foo ) : System.DateTime
foo this this
Результат System.DateTime

ToDecimal() публичный статический метод

Convert an object into a decimal
public static ToDecimal ( this foo ) : decimal
foo this this
Результат decimal

ToJson() публичный статический метод

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
Результат string