GetEnum
GetEnum(Enum)
public Enum GetEnum(Enum defaultValue) ;
Description
Get the value of the Enum type.
Parameters
Parameter Name | Description |
---|---|
defaultValue | Default value. It is returned when there is no parameter. |
Returns
The value of the parameter. If there is no parameter, it returns defaultValue.
GetEnum<TEnum>(TEnum)
public TEnum GetEnum<TEnum>(TEnum defaultValue) ;
Description
Get the value of the Enum type.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
TEnum | Type of enum to get |
|
Parameters
Parameter Name | Description |
---|---|
defaultValue | Default value. It is returned when there is no parameter. |
Returns
The value of the parameter. If there is no parameter, it returns defaultValue.
GetEnum<TEnum>()
public TEnum GetEnum<TEnum>() ;
Description
Get the value of the Enum type.
Type Parameters
Type Parameter Name | Description | Type Constraints |
---|---|---|
TEnum | Type of enum to get |
|
Returns
The value of the parameter. If there is no parameter, it returns default(TEnum).