I get an error from the following code:
int dreamX[]; private void Form1_Load(object sender, EventArgs e) { sumX(); } private void sumX() { for (v
FirstOrDefault() will turn the IEnumerable into an int.
FirstOrDefault()
IEnumerable
int
Actually it takes the first occurance in the outputresult of your linq-query.