Click or drag to resize
EnumComparerTEnum Class

[This is preliminary documentation and is subject to change.]

Inheritance Hierarchy
SystemObject
  VRageEnumComparerTEnum

Namespace: VRage
Assembly: VRage.Library (in VRage.Library.dll) Version: 1.0.0.0
Syntax
C#
public sealed class EnumComparer<TEnum>
where TEnum : struct, new()

Type Parameters

TEnum
The type of the Enum.

The EnumComparerTEnum type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
The singleton accessor.
Top
Methods
  NameDescription
Public methodCompare
Public methodEquals
Determines whether the specified objects are equal.
Public methodGetHashCode
Returns a hash code for the specified object.
Top
Remarks
var dict = new Dictionary<DayOfWeek, string>(EnumComparer<DayOfWeek>.Instance);
See Also