Consolidate validation code in Enum.ToObject overloads (#21280)
authorStephen Toub <stoub@microsoft.com>
Thu, 29 Nov 2018 21:01:02 +0000 (16:01 -0500)
committerGitHub <noreply@github.com>
Thu, 29 Nov 2018 21:01:02 +0000 (16:01 -0500)
commitb858fb810e76b5eaa5b5f7ccba3376463318550f
tree9723f7621707e8cda3f900d57f9513e81f68cf09
parent88fb86f36d22c94cb5fc6424110bf3dac37ac83b
Consolidate validation code in Enum.ToObject overloads (#21280)

Unnecessary duplication.  Moving it into a shared method has no measurable impact on ToObject performance, which is dominated by the boxing costs.
src/System.Private.CoreLib/src/System/Enum.cs