Here's how I can put a float value on the stack (in C #):
ILGenerator gen = method.GetILGenerator(); gen.Emit(OpCodes.Ldc_R4, (float)12.5);
How can I stack a boolean using the Emit method?
There is no logical value representation in the evaluation stack. Bool, char, byte, ushort, uint and their signed variants are represented as a 4-byte signed integer (i4).
True
ldc.i4.1
False
ldc.i4.0