2 references to MethodIsCompatibleWithDelegateOrFunctionPointer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Conversions.cs (1)
1450if (!MethodIsCompatibleWithDelegateOrFunctionPointer(receiverOpt, isExtensionMethod, selectedMethod, delegateOrFuncPtrType, location, diagnostics) ||
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
2900bool result = !_binder.MethodIsCompatibleWithDelegateOrFunctionPointer(node.ReceiverOpt, conv.IsExtensionMethod, conv.Method, delegateType, Location.None, BindingDiagnosticBag.Discarded);