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)
Syntax
public static class EnumExtensions

The EnumExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAreAllFlagsSetT
Determines whether all of the specified flags are set on the specified value.
Public methodStatic memberClearFlagsT
Clears the specified flags on the specified value.
Public methodStatic memberCombineFlagsT
Combines the flags into a single Enum.
Public methodStatic memberGetFlagsT
Gets the individual flags set on the specified value.
Public methodStatic memberIsAnyFlagSetT
Determines whether any of the specified flags is set on the specified value.
Public methodStatic memberSetFlagsT(T, T)
Sets the specified flags on the specified value.
Public methodStatic memberSetFlagsT(T, T, Boolean)
Sets the specified flags on the specified value on or off.
Public methodStatic memberToEnumT(Int16)
Converts a short value into an Enum.
Public methodStatic memberToEnumT(Int32)
Converts an integer value into an Enum.
Public methodStatic memberToEnumT(Int64)
Converts a long value into an Enum.
Public methodStatic memberToEnumT(NullableInt16)
Converts a short value into an enum.
Public methodStatic memberToEnumT(NullableInt32)
Converts an integer value into an enum.
Public methodStatic memberToEnumT(NullableUInt16)
Converts an unsigned short value into an enum.
Public methodStatic memberToEnumT(NullableUInt32)
Converts an unsigned integer value into an enum.
Public methodStatic memberToEnumT(UInt16)
Converts an unsigned short value into an Enum.
Public methodStatic memberToEnumT(UInt32)
Converts an unsigned integer value into an Enum.
Public methodStatic memberToEnumT(UInt64)
Converts an unsigned long value into an Enum.
Top
See Also