C# program to computes average of nullable values.

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 153
C# program to computes average of nullable values.
var dnfList = new List<int?> { 5, 6, null, 1 };
double? dnfAnswer =dnfList.Average();



Result
dnfAnswer 4.0

Comments or Responses

Login to post response