C# 클래스 EnumsNET.NonGeneric.NonGenericEnumComparer

A non-generic enum comparer.
상속: IEqualityComparer, IComparer
파일 보기 프로젝트 열기: TylerBrinkley/Enums.NET

공개 메소드들

메소드 설명
Compare ( object x, object y ) : int

Compares x to y.

Equals ( object x, object y ) : bool

Indicates if x equals y.

GetHashCode ( object obj ) : int

Retrieves a hash code for obj.

NonGenericEnumComparer ( Type enumType ) : System

The NonGenericEnumComparer constructor.

메소드 상세

Compare() 공개 메소드

Compares x to y.
public Compare ( object x, object y ) : int
x object The first enum value.
y object The second enum value.
리턴 int

Equals() 공개 메소드

Indicates if x equals y.
public Equals ( object x, object y ) : bool
x object The first enum value.
y object The second enum value.
리턴 bool

GetHashCode() 공개 메소드

Retrieves a hash code for obj.
public GetHashCode ( object obj ) : int
obj object The enum value.
리턴 int

NonGenericEnumComparer() 공개 메소드

The NonGenericEnumComparer constructor.
is null. is not an enum type.
public NonGenericEnumComparer ( Type enumType ) : System
enumType System.Type The enum type.
리턴 System