OperatorEvaluation.IsImplicitlyConvertible Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Declaring Type: OperatorEvaluation
Check if a type can be implicitly converted to another type
public static bool IsImplicitlyConvertible(Type targetType, Type sourceType);
Remarks
Based on this: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/implicit-numeric-conversions-table
Parameters
Type targetType | |
Type sourceType |
Returns
bool |