Photon Quantum 3.0.0

Classes | Static Public Member Functions | List of all members
Quantum.EnumEqualityComparer Class Reference

Enum utility methods. More...

Classes

struct  Tag
 An empty struct to mark the type as a tag. More...
 

Static Public Member Functions

static bool Equals< T > (T x, T y)
 Compares two enums for equality. Supports differently sized enum backing fields. More...
 

Detailed Description

Enum utility methods.

Member Function Documentation

◆ Equals< T >()

static bool Quantum.EnumEqualityComparer.Equals< T > ( x,
y 
)
inlinestatic

Compares two enums for equality. Supports differently sized enum backing fields.

Template Parameters
TEnum type
Parameters
xEnum A
yEnum B
Returns
true if enum values are equal
Type Constraints
T :unmanaged 
T :Enum