TryGetEnum
TryGetEnum(string, out Enum)
public bool TryGetEnum(string name, out Enum value) ;
Description
Get the value of the Enum type.
Parameters
| Parameter Name | Description | 
|---|---|
| name | Name. | 
| value | The value you get. | 
Returns
The true when there parameters of the specified name.
TryGetEnum(int, out Enum)
public bool TryGetEnum(int id, out Enum value) ;
Description
Get the value of the Enum type.
Parameters
| Parameter Name | Description | 
|---|---|
| id | ID. | 
| value | The value you get. | 
Returns
The true when there parameters of the specified name.
TryGetEnum<TEnum>(string, out TEnum)
public bool TryGetEnum<TEnum>(string name, out TEnum value) ;
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 | 
|---|---|
| name | Name. | 
| value | The value you get. | 
Returns
The true when there parameters of the specified name.
TryGetEnum<TEnum>(int, out TEnum)
public bool TryGetEnum<TEnum>(int id, out TEnum value) ;
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 | 
|---|---|
| id | ID. | 
| value | The value you get. | 
Returns
The true when there parameters of the specified name.