Support Nullable<> as ConCmd argument (#3515)

Co-authored-by: 766974616c79 <100430077+766974616c79@users.noreply.github.com>
This commit is contained in:
sboxbot
2025-12-01 10:40:32 +00:00
committed by GitHub
parent 95a575e1c4
commit 333e999f30

View File

@@ -614,6 +614,7 @@ public static partial class SandboxSystemExtensions
{
Value = null;
t = Nullable.GetUnderlyingType( t ) ?? t;
if ( t == typeof( decimal ) ) { Value = str.ToDecimal(); return true; }
if ( t == typeof( float ) ) { Value = str.ToFloat(); return true; }
if ( t == typeof( double ) ) { Value = (double)str.ToFloat(); return true; }