Click or drag to resize

EnumExtensions Class

Extension methods to ease dealing with Enum types.
Inheritance Hierarchy
SystemObject
  TomsToolbox.EssentialsEnumExtensions

Namespace: TomsToolbox.Essentials
Assembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static class EnumExtensions

The EnumExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodAreAllFlagsSetT Determines whether all of the specified flags are set on the specified value.
Public Extension MethodClearFlagsT Clears the specified flags on the specified value.
Public Extension MethodCombineFlagsT Combines the flags into a single Enum.
Public Extension MethodGetFlagsT Gets the individual flags set on the specified value.
Public Extension MethodIsAnyFlagSetT Determines whether any of the specified flags is set on the specified value.
Public Extension MethodSetFlagsT(T, T) Sets the specified flags on the specified value.
Public Extension MethodSetFlagsT(T, T, Boolean) Sets the specified flags on the specified value on or off.
Public Extension MethodToEnumT(Int16) Converts a short value into an Enum.
Public Extension MethodToEnumT(Int32) Converts an integer value into an Enum.
Public Extension MethodToEnumT(Int64) Converts a long value into an Enum.
Public Extension MethodToEnumT(NullableInt16) Converts a short value into an enum.
Public Extension MethodToEnumT(NullableInt32) Converts an integer value into an enum.
Public Extension MethodToEnumT(NullableUInt16) Converts an unsigned short value into an enum.
Public Extension MethodToEnumT(NullableUInt32) Converts an unsigned integer value into an enum.
Public Extension MethodToEnumT(UInt16) Converts an unsigned short value into an Enum.
Public Extension MethodToEnumT(UInt32) Converts an unsigned integer value into an Enum.
Public Extension MethodToEnumT(UInt64) Converts an unsigned long value into an Enum.
Top
See Also