Compilation.HasImplicitConversion(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.
Returns true if there is an implicit (C#) or widening (VB) conversion from
fromType
to toType
. Returns false if
either fromType
or toType
is null, or
if no such conversion exists.
public:
bool HasImplicitConversion(Microsoft::CodeAnalysis::ITypeSymbol ^ fromType, Microsoft::CodeAnalysis::ITypeSymbol ^ toType);
public bool HasImplicitConversion (Microsoft.CodeAnalysis.ITypeSymbol fromType, Microsoft.CodeAnalysis.ITypeSymbol toType);
public bool HasImplicitConversion (Microsoft.CodeAnalysis.ITypeSymbol? fromType, Microsoft.CodeAnalysis.ITypeSymbol? toType);
member this.HasImplicitConversion : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.ITypeSymbol -> bool
Public Function HasImplicitConversion (fromType As ITypeSymbol, toType As ITypeSymbol) As Boolean
Parameters
- fromType
- ITypeSymbol
- toType
- ITypeSymbol
Returns
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET