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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.