I just read an article and saw and only one MSIL instruction that loads constants. That's ldc.r8
and that's loads double
constant.
Now I'm curious about that. I did a google search but barely found something. Can you tell me, what kind of constant load instructions are there in .NET? Where do I read about them?
One source for the instruction set is here: http://en.wikipedia.org/wiki/List_of_CIL_instructions; you'll see 16 ldc
instructions there.
If you'd like a more comprehensive source of information, try the spec: http://www.ecma-international.org/publications/standards/Ecma-335.htm