Class EnumUtils
Contains static methods and properties related to enums.
public static class EnumUtils
- Inheritance
-
EnumUtils
Methods
- Convert(ModalResult)
Converts ModalResult to DialogResult.
- GetMaxValueUseLastAsInt<T>()
Gets maximum value of the enum as integer using last enum element.
- GetMaxValueUseLastOrDefault<T>(T?)
Returns
maxValue
if it's specified; otherwise uses GetMaxValueUseLastAsInt<T>() in order to obtain the result.
- GetMaxValueUseLast<T>()
Gets maximum value of the enum using last enum element.
- GetMaxValueUseMaxAsInt<T>()
Gets maximum value of the enum as integer using max enum element.
- GetMaxValueUseMax<T>()
Gets maximum value of the enum using max enum element.