[Mono-devel-list] Writing assembly

Eric Durand Tremblay eric.durand-tremblay.1 at ulaval.ca
Mon Feb 23 13:21:51 EST 2004

>On 02/12/04 Eric Durand-Tremblay wrote:
>>Does anyone know a way to emit (with reflection) an already existing 
>>class (compiled in C#).  We looked at System.Reflection.Emit namespace 
>>but we are only able to save dynamicaly created assembly.
>>It could be usefull to do this when it is time to make our assembly 
>>compatible with MS runtime.  (Like saving some base class to assembly)
>I can't think of a reason why you'd need to save a base class to a
>different assembly: you just reuse the base class implementation by
>deriving from it.
>Care to explain why you think you need that? Either it is because of
>confusion or because of a design issue with our regex code: it's better
>to clear the confusion or fix the design issue before proceeding further.
The reason is simple.  The so called BaseClass is not available on the 
.net framework.  When writhing a regex in an assembly ( with 
Regex.CompileToAssembly()) the Machine will need the base class and .... 
undefined reference to CILMachineBase ..blabla.  It's the same problem 
we got with Microsoft RegexRunner and it is why we can't execute ms 
compiled regex assembly.

Anyway, it is beyond our objective for this project.  I was just asking 
out of curiosity.

Eric Durand-Tremblay
TIP-Mono Team

Take a look at our blog, we got some intresting advancement and you will 
find more detail on this subject.
http://aeglos.dyndns.org/tip-mono or tip-mono on monologue.

More information about the Mono-devel-list mailing list