Convert lambda to method group

Hi,
 
R# keeps suggesting that the underlined code should be "converted to method group".
 
I'm not sure what this means.
 
 
 
If I allow R# to convert to method group, the compiler compains with:
 
Error 1 The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.Max<T>(System.Collections.Generic.IEnumerable<T>, System.Func<T,decimal>)' and 'System.Linq.Enumerable.Max<T>(System.Collections.Generic.IEnumerable<T>, System.Func<T,decimal?>)' D:\Documents\Visual Studio 2008\Projects\Amberwood\Core\AutoIncrementKey.cs 129 17 Amberwood.Core
Error 2 'int Amberwood.Core.AutoIncrementKey<T>.GetPrimaryKeyValue(T)' has the wrong return type D:\Documents\Visual Studio 2008\Projects\Amberwood\Core\AutoIncrementKey.cs 129 47 Amberwood.Core
Error 3 Cannot implicitly convert type 'decimal' to 'int'. An explicit conversion exists (are you missing a cast?) D:\Documents\Visual Studio 2008\Projects\Amberwood\Core\AutoIncrementKey.cs 129 17 Amberwood.Core
This is version 4.0.751.25
 
Regards
Jeremy
 
]]>



Attachment(s):
Capture.GIF

Please sign in to leave a comment.