The following line of code keeps crashing on me with: "Exception has been thrown by the target of an invocation. // Unhandled Expression Type: 1001"
Can anyone tell why just by looking at it?
myList.Aggregate((curmax, x) => (curmax == null || x.LastMonth > curmax.LastMonth ? x : curmax));
What i do get is that curmax is the variable that will be returned and that X is an item being iterated over. but i just can not explain the error.