EnumHelperGetDefaultValue Method (Type) |
Gets the default value fo the specified enum type.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax public static Enum GetDefaultValue(
Type enumType
)
Parameters
- enumType
- Type: SystemType
Enum type
Return Value
Type:
Enum
Returns the default enum value, if it is specified using the
EnumDefaultValueAttribute.
Otherwise returns the first declared enum value.
See Also