This project is read-only.

ResolveOverloads is marked deprecated

Topics: APIs
May 23, 2014 at 8:10 PM
Edited May 23, 2014 at 8:43 PM
I notice that SemanticModel.ResolveOverloads is marked as deprecated. What is the recommended way to perform method resolution?

Specifically, I have a list of members obtain from a type symbol using INamespaceOrTypeSymbol.GetMembers(string name) and a list of arguments and would like to find the best matching method from the list. How do I do this?

I have another scenario where I have an collection initializer represented as an InitializerExpressionSyntax and would like to determine which Add method is called for each element of the initializer list.