C# Класс NVelocity.Runtime.Parser.Node.ObjectComparer

ObjectComparer allows you to compare primitive types and some others using IComparable interface whenever possible, and performing type conversions to get the best possible result.
Наследование: IComparer
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Compare ( object x, object y ) : int
CompareObjects ( object x, object y ) : int

Tries to compare two random objects. -1 is returned if x is smaller than y, 1 the other way around, or 0 if they are equal.

ComparePrimitive ( object x, object y ) : int
ReType ( object value ) : object

Приватные методы

Метод Описание
ObjectComparer ( ) : System

Описание методов

Compare() публичный Метод

public Compare ( object x, object y ) : int
x object
y object
Результат int

CompareObjects() публичный статический Метод

Tries to compare two random objects. -1 is returned if x is smaller than y, 1 the other way around, or 0 if they are equal.
public static CompareObjects ( object x, object y ) : int
x object
y object
Результат int

ComparePrimitive() публичный Метод

public ComparePrimitive ( object x, object y ) : int
x object
y object
Результат int

ReType() публичный Метод

public ReType ( object value ) : object
value object
Результат object