update compile condition

This commit is contained in:
Weihan Li
2024-10-27 09:57:30 +08:00
committed by GitHub
parent 9bd5aa1f9b
commit fe34105fe7
2 changed files with 2 additions and 2 deletions

View File

@@ -367,7 +367,7 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
text = text.Substring(1);
}
}
#if NET8_0_OR_GREATER
#if NET
else if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0)
{
if (text.StartsWith("0b") || text.StartsWith("0B")) // support 0b bin while user input