Method TryGetName
TryGetName(T, out string?)
Gets the first enumeration name with the given value.
Declaration
public bool TryGetName(T value, out string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The enumeration value. |
| string | name | Contains the matched name when the method returns if the name was found, otherwise null. |
Returns
| Type | Description |
|---|---|
| bool |