TryGetEnum
public bool TryGetEnum(string name, out Enum value) ;
Get the value of the Enum type.
Parameter Name | Description |
---|---|
name | Name. |
value | The value you get. |
The true when there parameters of the specified name.
public bool TryGetEnum(int id, out Enum value) ;
Get the value of the Enum type.
Parameter Name | Description |
---|---|
id | ID. |
value | The value you get. |
The true when there parameters of the specified name.
public bool TryGetEnum<TEnum>(string name, out TEnum value) ;
Get the value of the Enum type.
Type Parameter Name | Description | Type Constraints |
---|---|---|
TEnum | Type of enum to get |
|
Parameter Name | Description |
---|---|
name | Name. |
value | The value you get. |
The true when there parameters of the specified name.
public bool TryGetEnum<TEnum>(int id, out TEnum value) ;
Get the value of the Enum type.
Type Parameter Name | Description | Type Constraints |
---|---|---|
TEnum | Type of enum to get |
|
Parameter Name | Description |
---|---|
id | ID. |
value | The value you get. |
The true when there parameters of the specified name.