double utilization1=null; double utilization2=null; double utilization3=null; double utilization4 = null;
if ((utilization1 != null) && (utilization2!=null)&&(utilization3 != null) && (utilization4!=null)) { //do something }
Cannot convert null to 'double' because it is a non-nullable value type
double?
System.Nullable<double>
double
int? i = 10; double? d1 = 3.14; bool? flag = null; char? letter = 'a';
Nullable<double> utilization1 = null; if ((utilization1.HasValue) { //Do Something with utilization1.Value } </double>
System.Double
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)