Inference/src/CodeGeneration/Operations/CGRuntimeCheckTypeExpressionOperation.cs
/// <summary>
/// It tries to convert the top of the stack to a generic DoubleType indicated by operand.
/// </summary>
/// <param name="operand">DoubleType we want to convert to</param>
/// <returns></returns>
It tries to convert the top of the stack to a generic DoubleType indicated by operand.
It tries to convert the top of the stack to a generic DoubleType indicated by operand .
public override object Exec(DoubleType operand, object arg) {
            string notThisType = this.codeGenerator.NewLabel;
            this.codeGenerator.dup(this.indent);
            this.codeGenerator.isinst(this.indent, operand);
            this.codeGenerator.brfalse(this.indent, notThisType);
            this.codeGenerator.UnboxAny(this.indent, operand);
            this.codeGenerator.br(this.indent, endLabel);
            this.codeGenerator.WriteLabel(this.indent, notThisType);
            return null;
        }
public override object Exec ( DoubleType operand , object arg ) { string notThisType = this . codeGenerator . NewLabel ; this . codeGenerator . dup ( this . indent ) ; this . codeGenerator . isinst ( this . indent , operand ) ; this . codeGenerator . brfalse ( this . indent , notThisType ) ; this . codeGenerator . UnboxAny ( this . indent , operand ) ; this . codeGenerator . br ( this . indent , endLabel ) ; this . codeGenerator . WriteLabel ( this . indent , notThisType ) ; return null ; }
It tries to convert the top of the stack to a generic DoubleType indicated by operand.
It tries to convert the top of the stack to a generic DoubleType indicated by operand .
None
operand
DoubleType
DoubleType we want to convert to
DoubleType we want to convert to
arg
object