Compilation.ClassifyCommonConversion(ITypeSymbol, ITypeSymbol) 方法

定义

根据此编译的编程语言对转换sourcedestination进行分类。

public:
 abstract Microsoft::CodeAnalysis::Operations::CommonConversion ClassifyCommonConversion(Microsoft::CodeAnalysis::ITypeSymbol ^ source, Microsoft::CodeAnalysis::ITypeSymbol ^ destination);
public abstract Microsoft.CodeAnalysis.Operations.CommonConversion ClassifyCommonConversion (Microsoft.CodeAnalysis.ITypeSymbol source, Microsoft.CodeAnalysis.ITypeSymbol destination);
abstract member ClassifyCommonConversion : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.Operations.CommonConversion
Public MustOverride Function ClassifyCommonConversion (source As ITypeSymbol, destination As ITypeSymbol) As CommonConversion

参数

source
ITypeSymbol

要转换的值的源类型

destination
ITypeSymbol

要转换的值的目标类型

返回

将类型转换为source类型进行分类的 destination ACommonConversion

适用于