.NET 4.0中是否有转换器支持可空类型之间的转换以缩短指令,例如:
bool? nullableBool = GetSomething(); byte? nbyte = nullableBool.HasValue ? (byte?)Convert.ToByte(nullableBool.Value) : null;
.net c# nullable
.net ×1
c# ×1
nullable ×1