我怎样才能得到0作为整数值(int)null.
(int)null
编辑1:我想创建一个函数,它将在各自的数据类型中返回null表示的默认值.
编辑2: 我如何在这种情况下使用默认值.
(INT)值
其中Value可以为null或任何整数值.我不知道运行时的数据类型.但我会保证Value应该只包含null或Integer值.
.net c# casting
.net ×1
c# ×1
casting ×1