共用方式為


IMethodSymbol.ReduceExtensionMethod(ITypeSymbol) 方法

定義

如果這是可套用至指定型別接收者的擴充方法,則會傳回因此形成的縮減擴充方法符號。 否則,會傳回 null。

public:
 Microsoft::CodeAnalysis::IMethodSymbol ^ ReduceExtensionMethod(Microsoft::CodeAnalysis::ITypeSymbol ^ receiverType);
public Microsoft.CodeAnalysis.IMethodSymbol ReduceExtensionMethod (Microsoft.CodeAnalysis.ITypeSymbol receiverType);
public Microsoft.CodeAnalysis.IMethodSymbol? ReduceExtensionMethod (Microsoft.CodeAnalysis.ITypeSymbol receiverType);
abstract member ReduceExtensionMethod : Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.IMethodSymbol
Public Function ReduceExtensionMethod (receiverType As ITypeSymbol) As IMethodSymbol

參數

receiverType
ITypeSymbol

傳回

適用於