C# Class Nvelope.ObjectExtensions

Datei anzeigen Open project: TrinityWestern/Nvelope

Public Methods

Method Description
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

Method Details

Eq() public static method

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
return bool

LazyEq() public static method

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

LazyNeq() public static method

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

Neq() public static method

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

Print() public static method

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
return string