Compilation.ClassifyCommonConversion(ITypeSymbol, ITypeSymbol) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
根据此编译的编程语言对转换source
destination
进行分类。
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。