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
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity 1 사용 예제들

공개 메소드들

메소드 설명
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