OperatorEvaluation.ImplicitCast Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor
Declaring Type: OperatorEvaluation
Tries to implicitly convert a type, thowing an exception if it doesn't fit in the target type, or there's loss of precision when casting from floating point types
public static object ImplicitCast(object value, Type targetType);
Parameters
object value | The value to convert |
Type targetType | The target type |
Returns
object |