Use HexConverter directly when producing hex representation of enum value (#44945)
authorMarek Safar <marek.safar@gmail.com>
Sat, 21 Nov 2020 23:06:52 +0000 (00:06 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Nov 2020 23:06:52 +0000 (15:06 -0800)
commitc4c398171258725cc0ee6fbbb3e6cdfc0cf8ad8c
tree24b498c532f3cb48ccf1ba7ac477d95ac33759d5
parenteb5df0da7a93212df9b03d350af7a9cdfdb2c975
Use HexConverter directly when producing hex representation of enum value (#44945)

instead of hopping over layers of ToString indirections which end up calling HexConvertor anyway.
src/libraries/System.Private.CoreLib/src/System/Enum.cs