EmitLdc() abstract private method

abstract private EmitLdc ( FluentEmitter method ) : FluentEmitter
method FluentEmitter
return FluentEmitter
Example #1
0
		public FluentEmitter Div(MagicNumberArgument divisor)
		{
			if (divisor.IsZero)
				throw new DivideByZeroException("this instruction will cause a DivideByZeroException");

			return divisor.EmitLdc(this)
				.Emit(OpCodes.Div);
		}
Example #2
0
        public FluentEmitter DivUn(MagicNumberArgument divisor)
        {
            if (divisor.IsZero)
            {
                throw new DivideByZeroException("this instruction will cause a DivideByZeroException");
            }

            return(divisor.EmitLdc(this)
                   .Emit(OpCodes.Div_Un));
        }
Example #3
0
		public FluentEmitter Mul(MagicNumberArgument arg)
		{
			return arg.EmitLdc(this)
				.Emit(OpCodes.Mul);
		}
Example #4
0
		public FluentEmitter Sub(MagicNumberArgument arg)
		{
			return arg.EmitLdc(this)
				.Emit(OpCodes.Sub);
		}
Example #5
0
		public FluentEmitter RemUn(MagicNumberArgument divisor)
		{
			return divisor.EmitLdc(this)
				.Emit(OpCodes.Rem_Un);
		}
Example #6
0
 public FluentEmitter Mul(MagicNumberArgument arg)
 {
     return(arg.EmitLdc(this)
            .Emit(OpCodes.Mul));
 }
Example #7
0
 public FluentEmitter RemUn(MagicNumberArgument divisor)
 {
     return(divisor.EmitLdc(this)
            .Emit(OpCodes.Rem_Un));
 }