IMethodSymbol.GetTypeInferredDuringReduction(ITypeParameterSymbol) 方法

定义

如果此方法是缩减的扩展方法,则返回在类型参数的缩减过程中推断的类型。

public:
 Microsoft::CodeAnalysis::ITypeSymbol ^ GetTypeInferredDuringReduction(Microsoft::CodeAnalysis::ITypeParameterSymbol ^ reducedFromTypeParameter);
public Microsoft.CodeAnalysis.ITypeSymbol GetTypeInferredDuringReduction (Microsoft.CodeAnalysis.ITypeParameterSymbol reducedFromTypeParameter);
public Microsoft.CodeAnalysis.ITypeSymbol? GetTypeInferredDuringReduction (Microsoft.CodeAnalysis.ITypeParameterSymbol reducedFromTypeParameter);
abstract member GetTypeInferredDuringReduction : Microsoft.CodeAnalysis.ITypeParameterSymbol -> Microsoft.CodeAnalysis.ITypeSymbol
Public Function GetTypeInferredDuringReduction (reducedFromTypeParameter As ITypeParameterSymbol) As ITypeSymbol

参数

reducedFromTypeParameter
ITypeParameterSymbol

相应 ReducedFrom 方法的类型参数。

返回

推断类型或 Nothing(如果未推断任何内容)。

例外

如果这不是缩减的扩展方法。

如果 reducedFromTypeParameter 为 null。

如果 reducedFromTypeParameter 不属于相应的 ReducedFrom 方法。

适用于