Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1.             int m = consumptionResult.Sites.Count;
  2.      
  3.             double[] sum = new double[consumptionResult.Sites.Count];
  4.             for (int i = 0; i < m; i++)
  5.             {
  6.                 for (int j = 0; j < consumptionResult.Sites[i].Actual.Count; j++)
  7.                 {
  8.                     sum[i] += consumptionResult.Sites[i].Actual[j];
  9.                 }
  10.  
  11.             }
  12.  
  13.  
  14. ERROR MESSAGE:
  15. Cannot implicitly convert type 'double?' to 'double'. An explicit conversion exists (are you missing a cast?)
  16. Cannot convert source type `System.Nullable<double>' to target type 'double'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement