C# 클래스 System.ObjectExtentions

파일 보기 프로젝트 열기: Praeses/BackboneDemo

공개 메소드들

메소드 설명
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