CSharpCompilation.ClassifyCommonConversion(ITypeSymbol, ITypeSymbol) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classifies a conversion from source
to destination
according
to this compilation's programming language.
public:
override Microsoft::CodeAnalysis::Operations::CommonConversion ClassifyCommonConversion(Microsoft::CodeAnalysis::ITypeSymbol ^ source, Microsoft::CodeAnalysis::ITypeSymbol ^ destination);
public override Microsoft.CodeAnalysis.Operations.CommonConversion ClassifyCommonConversion (Microsoft.CodeAnalysis.ITypeSymbol source, Microsoft.CodeAnalysis.ITypeSymbol destination);
override this.ClassifyCommonConversion : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.ITypeSymbol -> Microsoft.CodeAnalysis.Operations.CommonConversion
Public Overrides Function ClassifyCommonConversion (source As ITypeSymbol, destination As ITypeSymbol) As CommonConversion
Parameters
- source
- ITypeSymbol
Source type of value to be converted
- destination
- ITypeSymbol
Destination type of value to be converted
Returns
A CommonConversion that classifies the conversion from the
source
type to the destination
type.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈