Skip to content

Commit

Permalink
Fix IDE0062 warning in NumberFormatInfo.cs (#58337)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Aug 30, 2021
1 parent 9703660 commit 9671726
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ internal static void ValidateParseStyleInteger(NumberStyles style)
if ((style & (InvalidNumberStyles | NumberStyles.AllowHexSpecifier)) != 0
&& (style & ~NumberStyles.HexNumber) != 0)
{
throwInvalid(style);
ThrowInvalid(style);

void throwInvalid(NumberStyles value)
static void ThrowInvalid(NumberStyles value)
{
if ((value & InvalidNumberStyles) != 0)
{
Expand All @@ -752,9 +752,9 @@ internal static void ValidateParseStyleFloatingPoint(NumberStyles style)
// Check for undefined flags or hex number
if ((style & (InvalidNumberStyles | NumberStyles.AllowHexSpecifier)) != 0)
{
throwInvalid(style);
ThrowInvalid(style);

void throwInvalid(NumberStyles value)
static void ThrowInvalid(NumberStyles value)
{
if ((value & InvalidNumberStyles) != 0)
{
Expand Down

0 comments on commit 9671726

Please sign in to comment.