C# Class Nvelope.ObjectExtensions

Afficher le fichier Open project: TrinityWestern/Nvelope

Méthodes publiques

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

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

LazyEq() public static méthode

public static LazyEq ( this obj, object other ) : bool
obj this
other object
Résultat bool

LazyNeq() public static méthode

public static LazyNeq ( this obj, object other ) : bool
obj this
other object
Résultat bool

Neq() public static méthode

Inverse of Eq
public static Neq ( this obj, object other ) : bool
obj this
other object
Résultat bool

Print() public static méthode

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