C# Class EnumsNET.NonGeneric.NonGenericEnumComparer

A non-generic enum comparer.
Inheritance: IEqualityComparer, IComparer
Afficher le fichier Open project: TylerBrinkley/Enums.NET

Méthodes publiques

Méthode 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 méthode

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

Equals() public méthode

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

GetHashCode() public méthode

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

NonGenericEnumComparer() public méthode

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