Error!
Success!

Beginning Reflection.Emit, a basic example

0
kicks

Beginning Reflection.Emit, a basic example  (Unpublished)

The System.Reflection.Emit namespace provides us the tools required to generate .NET code on the fly. Especially the DynamicMethod class makes the job of creating small code snippet easier. In this post I’ll show a simple example of dynamically creating a method which takes a string as its argument and returns a string “hi “prepended to it. First, we will create the DynamicMethod object specifying the argument list and the return type of the dynamic method. Next


Kicked By:
Drop Kicked By: