I am creating a type with reflection by using the code from this answer. And I want to add a function to this class (probably using ILGenerator). And in the comment section of this answer, Sergey Mirvoda commented that ILGenerator emit commands can be obtained by simply following these steps: compile it into assembly and open with reflector, switch to IL view and you will see code that copypastable
I do not want to decompile so that I can get the lost code. Therefore I am not looking for a decompiler. I am trying to get IL Emit codes for a sample code I currently have. Decompiling might just do the trick. However there may be other solutions and hopefully not requiring third party apps.
I am using VS Ultimate 2013. Is there a way to do this with VS? Or do I need to use third party apps?