C# Class EnumsNET.NonGeneric.NonGenericEnumComparer

A non-generic enum comparer.
Inheritance: IEqualityComparer, IComparer
Mostra file Open project: TylerBrinkley/Enums.NET

Public Methods

Method Description
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.

Method Details

Compare() public method

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

Equals() public method

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

GetHashCode() public method

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

NonGenericEnumComparer() public method

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