this is working pretty fine:
new dictionary {{0,0}, {1,1}, {3,2}} [3]
this is throwing exception:
new dictionary {{0,0}, {1,1}, {3,2}} [x.Sum()]
System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> System.Exception : The given key was not present in the dictionary.
x is instance of class with object Sum() method, that returns 1
this is working pretty fine:
new dictionary {{0,0}, {1,1}, {3,2}} [3]
this is throwing exception:
new dictionary {{0,0}, {1,1}, {3,2}} [x.Sum()]
System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.Exception : The given key was not present in the dictionary.
x is instance of class with object Sum() method, that returns 1