C# 클래스 Nvelope.ObjectExtensions

파일 보기 프로젝트 열기: TrinityWestern/Nvelope

공개 메소드들

메소드 설명
Eq ( this obj, object other ) : bool

Tests whether 2 objects are equal, but handles nulls gracefully

Stolen from Clojure

LazyEq ( this obj, object other ) : bool
LazyNeq ( this obj, object other ) : bool
Neq ( this obj, object other ) : bool

Inverse of Eq

Print ( this o ) : string

Like ToString, but it handles nulls and gives nicer results for some objects.

There should be no other implementations of Print, because we want the thing to behave polymorphically, and there's no assurance of that unless we centralize here

메소드 상세

Eq() 공개 정적인 메소드

Tests whether 2 objects are equal, but handles nulls gracefully
Stolen from Clojure
public static Eq ( this obj, object other ) : bool
obj this
other object
리턴 bool

LazyEq() 공개 정적인 메소드

public static LazyEq ( this obj, object other ) : bool
obj this
other object
리턴 bool

LazyNeq() 공개 정적인 메소드

public static LazyNeq ( this obj, object other ) : bool
obj this
other object
리턴 bool

Neq() 공개 정적인 메소드

Inverse of Eq
public static Neq ( this obj, object other ) : bool
obj this
other object
리턴 bool

Print() 공개 정적인 메소드

Like ToString, but it handles nulls and gives nicer results for some objects.
There should be no other implementations of Print, because we want the thing to behave polymorphically, and there's no assurance of that unless we centralize here
public static Print ( this o ) : string
o this
리턴 string