POLISH net8
This commit is contained in:
@@ -356,12 +356,8 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
|
|||||||
text = text.Substring(1);
|
text = text.Substring(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
#if NET8_0_OR_GREATER
|
#if NET8_0_OR_GREATER
|
||||||
if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0)
|
else if ((numberStyles & NumberStyles.AllowBinarySpecifier) != 0)
|
||||||
#else
|
|
||||||
if (((int)numberStyles &/* NumberStyles.AllowBinarySpecifier */ 1027) != 0)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if (text.StartsWith("0b") || text.StartsWith("0B")) // support 0b bin while user input
|
if (text.StartsWith("0b") || text.StartsWith("0B")) // support 0b bin while user input
|
||||||
{
|
{
|
||||||
@@ -377,6 +373,7 @@ public abstract class NumericUpDownBase<T> : NumericUpDown where T : struct, ICo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<Import Project="../Package.props"/>
|
<Import Project="../Package.props"/>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;NET8</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net8</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
|||||||
Reference in New Issue
Block a user