Partager via


Compilation.HasImplicitConversion(ITypeSymbol, ITypeSymbol) Method

Definition

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