CSharpCompilation.ClassifyConversion(ITypeSymbol, ITypeSymbol) 方法

定义

将转换分类为 sourcedestination.

public:
 Microsoft::CodeAnalysis::CSharp::Conversion ClassifyConversion(Microsoft::CodeAnalysis::ITypeSymbol ^ source, Microsoft::CodeAnalysis::ITypeSymbol ^ destination);
public Microsoft.CodeAnalysis.CSharp.Conversion ClassifyConversion (Microsoft.CodeAnalysis.ITypeSymbol source, Microsoft.CodeAnalysis.ITypeSymbol destination);
member this.ClassifyConversion : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.CSharp.Conversion
Public Function ClassifyConversion (source As ITypeSymbol, destination As ITypeSymbol) As Conversion

参数

source
ITypeSymbol

要转换的值的源类型

destination
ITypeSymbol

要转换的值的目标类型

返回

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

适用于