Re: Reflection.Emit usage
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Fri, 20 Oct 2006 00:44:00 +0200
Can anybody provide a good example for the Reflectio.Emitl namespace
usage? The problem I'm trying to solve is copying the method body from
existing class to newly created one.
The raw IL byte stream you get with MethodBody.GetILAsByteArray()
contain token values that are only valid within the same executable
module. You can't take those raw tokens and write them to another
method body and expect it to work.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Follow-Ups:
- Re: Reflection.Emit usage
- From: Mick
- Re: Reflection.Emit usage
- References:
- Reflection.Emit usage
- From: Mick
- Reflection.Emit usage
- Prev by Date: Re: Accessing Properties?
- Next by Date: Re: V.studio
- Previous by thread: Reflection.Emit usage
- Next by thread: Re: Reflection.Emit usage
- Index(es):