M
Mark Miller
I am using Reflection.Emit to dynamically build a class. A method of the
class to be built requires a Parameter of type "Type". But I don't know how
to use Emit to pass a call of "typeof()" to the method.
The method could look like this:
public void myDynamicMethod(Type type){
//.....do something with the Type passed in.......
}
the call to the method would look like this:
myDynamicMethod( typeof( myCustomType ) );
So essentially I am looking to use Emit to output the "typeof(
myCustomType )" part. Any suggestions would be appreciated.
Mark
class to be built requires a Parameter of type "Type". But I don't know how
to use Emit to pass a call of "typeof()" to the method.
The method could look like this:
public void myDynamicMethod(Type type){
//.....do something with the Type passed in.......
}
the call to the method would look like this:
myDynamicMethod( typeof( myCustomType ) );
So essentially I am looking to use Emit to output the "typeof(
myCustomType )" part. Any suggestions would be appreciated.
Mark