Feature: #78575 - Enumeration constants don’t provide their names ¶
See Issue #78575
Requesting the name of Enumeration constants has been introduced.
There are two methods you can use:
will return the name exactly as it is. Usually this will be all uppercase and underscores.
replaces underscores with spaces and turns all words into lowercase with the first letter uppercase.
You can use the constant names as part of your application more easily.