diff --git a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs index 598324f..40df9e3 100644 --- a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs +++ b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs @@ -356,12 +356,8 @@ public abstract class NumericUpDownBase : NumericUpDown where T : struct, ICo text = text.Substring(1); } } - else #if NET8_0_OR_GREATER - if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0) -#else - if (((int)numberStyles &/* NumberStyles.AllowBinarySpecifier */ 1027) != 0) -#endif + else if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0) { if (text.StartsWith("0b") || text.StartsWith("0B")) // support 0b bin while user input { @@ -377,6 +373,7 @@ public abstract class NumericUpDownBase : NumericUpDown where T : struct, ICo } } +#endif return text; } diff --git a/src/Ursa/Ursa.csproj b/src/Ursa/Ursa.csproj index 1b93c54..c60174b 100644 --- a/src/Ursa/Ursa.csproj +++ b/src/Ursa/Ursa.csproj @@ -3,7 +3,7 @@ - netstandard2.0;NET8 + netstandard2.0;net8 enable enable latest