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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.