[Mono-list] TypeInitializationException in ComponentModel

Andrus kobruleht2 at hot.ee
Mon Oct 22 03:24:18 EDT 2007


I need to add properties to type at runtime.
There are two possibilities:

1. Use TypeDescriptor
2. Use dynamic compiling and dynamic assembly loading

As I understand from replies, TypeDescriptor will not implemented in 
foreseeable future. I'm not capable to implement it.

So I should go to dynamic compiling route, right ?

Andrus.

> There is no way. Its internal exception is NotImplementedException,
> which means it is simply not implemented.

> So, when it comes to how to fix: implement our class libs ;-)
>
> Atsushi Eno
>
> Andrus wrote:
>> Code below causes  TypeInitializationException in 1.2.5
>>
>> In .net 2 it works OK.
>>
>> How to fix ?
> 



More information about the Mono-list mailing list