CSharpExtensions.GetMethodSymbol(SemanticModel, ExpressionSyntax, CancellationToken) Method
Containing Type: CSharpExtensions
Assembly: Roslynator.CSharp.dll
Returns method symbol, if any, the specified expression syntax bound to.
public static Microsoft.CodeAnalysis.IMethodSymbol? GetMethodSymbol(this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, System.Threading.CancellationToken cancellationToken = default)
Parameters
semanticModel SemanticModel
expression ExpressionSyntax
cancellationToken CancellationToken