C# Класс Nvelope.ObjectExtensions

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

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

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