Click or drag to resize

EnumExtensions Class

Extension methods to ease dealing with Enum types.
Inheritance Hierarchy
System.Object
  TomsToolbox.Essentials.EnumExtensions

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 MethodAreAllFlagsSet<T> Determines whether all of the specified flags are set on the specified value.
Public Extension MethodClearFlags<T> Clears the specified flags on the specified value.
Public Extension MethodCombineFlags<T> Combines the flags into a single Enum.
Public Extension MethodGetFlags<T> Gets the individual flags set on the specified value.
Public Extension MethodIsAnyFlagSet<T> Determines whether any of the specified flags is set on the specified value.
Public Extension MethodSetFlags<T>(T, T) Sets the specified flags on the specified value.
Public Extension MethodSetFlags<T>(T, T, Boolean) Sets the specified flags on the specified value on or off.
Public Extension MethodToEnum<T>(Int16) Converts a short value into an Enum.
Public Extension MethodToEnum<T>(Int32) Converts an integer value into an Enum.
Public Extension MethodToEnum<T>(Int64) Converts a long value into an Enum.
Public Extension MethodToEnum<T>(Nullable<Int16>) Converts a short value into an enum.
Public Extension MethodToEnum<T>(Nullable<Int32>) Converts an integer value into an enum.
Public Extension MethodToEnum<T>(Nullable<UInt16>) Converts an unsigned short value into an enum.
Public Extension MethodToEnum<T>(Nullable<UInt32>) Converts an unsigned integer value into an enum.
Public Extension MethodToEnum<T>(UInt16) Converts an unsigned short value into an Enum.
Public Extension MethodToEnum<T>(UInt32) Converts an unsigned integer value into an Enum.
Public Extension MethodToEnum<T>(UInt64) Converts an unsigned long value into an Enum.
Top
See Also