For the following code:
private decimal? Quantity;
if (Quantity.HasValue && Quantity.Value !=0)
{
// 1
}
if (Quantity !=0)
{
// 2
}
Can I always use #2 instead?
For the following code:
private decimal? Quantity;
if (Quantity.HasValue && Quantity.Value !=0)
{
// 1
}
if (Quantity !=0)
{
// 2
}
Can I always use #2 instead?