Inference/src/CodeGeneration/Operations/CGRuntimeFreshTEPromotionOperation.cs
/// <summary>
/// It delegates the operation in several types.
/// </summary>
/// <param name="operand"></param>
/// <returns></returns>
It delegates the operation in several types.
It delegates the operation in several types .
public override object Exec(TypeVariable operand, object arg) {
            if (!operand.IsValueType())
                return null;
            if (TypeExpression.Is<IntType>(operand))
                return this.Exec(TypeExpression.As<IntType>(operand), arg);
            if (TypeExpression.Is<DoubleType>(operand))
                return this.Exec(TypeExpression.As<DoubleType>(operand), arg);
            return this.Exec((TypeExpression)operand, arg);
        }
public override object Exec ( TypeVariable operand , object arg ) { if ( ! operand . IsValueType ( ) ) return null ; if ( TypeExpression . Is < IntType > ( operand ) ) return this . Exec ( TypeExpression . As < IntType > ( operand ) , arg ) ; if ( TypeExpression . Is < DoubleType > ( operand ) ) return this . Exec ( TypeExpression . As < DoubleType > ( operand ) , arg ) ; return this . Exec ( ( TypeExpression ) operand , arg ) ; }
It delegates the operation in several types.
It delegates the operation in several types .
None
operand
TypeVariable
None
arg
object