C# Класс EnumsNET.NonGeneric.NonGenericEnumComparer

A non-generic enum comparer.
Наследование: IEqualityComparer, IComparer
Показать файл Открыть проект

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

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