Welcome to MSDN Blogs Sign in | Join | Help

April 2006 - Posts

Kathy's blog

Kathy introduced me in her blog as the new program manager who will be owning Reflection, Reflection Emit, CodeDom etc. Thank Kathy for the introduction. We incidentally sit right across the hallway from each other. I am completely new to blogging and

Creating nested types dynamically using the TypeResolve event

Creating a Type dynamically using the TypeResolve event. I came across this issue recently when I was working on something and thought that I will share this with everyone. The TypeResolve event is generated when the run time is unable to determine the

Generic dynamic method using DefineMethod

This example illustrates how you can define a generic dynamic method and call it. In the sample below we define a method void HelloWorld<T>(T val) in type Hello and call it. The body of the HelloWorld Method accesses the parameter passed to the

DynamicMethod and TypeBuilder.DefineMethod

There are two ways you can create a method dynamically. DynamicMethod class TypeBuilder.DefineMethod You don’t need a type or assembly to generate a method using DynamicMethod. A method generated using DynamicMethod can be assocaited with any type of
 
Page view tracker