IMethodSymbol.AssociatedExtensionImplementation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
For a method/accessor/operator in an extension block, returns the corresponding implementation method if one exists. Returns null otherwise.
For example, considering:
static class E
{
extension(int i)
{
public void M() { }
}
}
When given the method symbol for E.extension(int i).M(),
it will return the corresponding static implementation method E.M(this int i).
public Microsoft.CodeAnalysis.IMethodSymbol? AssociatedExtensionImplementation { get; }
member this.AssociatedExtensionImplementation : Microsoft.CodeAnalysis.IMethodSymbol
Public ReadOnly Property AssociatedExtensionImplementation As IMethodSymbol