IMethodSymbol.ReduceExtensionMethod(ITypeSymbol) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果這是可套用至指定型別接收者的擴充方法,則會傳回因此形成的縮減擴充方法符號。 否則,會傳回 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