In short, your question is: "How can I find all the transformations of method groups?"
We are currently working on a project codenamed Roslyn, which will allow you to use the same semantic analysis mechanism that the C # compiler and IDE use. He will open the syntactic model of the language, and then provide the semantic analysis API with which you can ask questions of the semantic analyzer.
With Roslyn, you can compile all your code into syntax trees and then search for these syntax trees for each expression. There will be an API that allows you to determine if an expression has been converted to anything, and if so, how the transformation analyzer has classified the transformation.
We are currently at the “community technology preview” stage; we have a preliminary implementation, but it is not yet fully available. I don’t remember whether the method group conversion analyzer was implemented in the CTP release or not.
Try it, and if you have any feedback about this, we will be happy to hear your thoughts on the Roslyn forum.
Details here:
http://msdn.microsoft.com/en-us/roslyn
source share