[Mono-dev] Module constructor of external assembly not getting called

Argiris Kirtzidis akyrtzi at gmail.com
Sat Dec 30 21:46:26 EST 2006


I attached a file ('TestLib.dll') that contains a module constructor (.cctor) that just prints to console 'Module constructor called'

You can test it by referencing it by a C# program:

class Program
{
    static void Main(string[] args)
    {
        SomeNS.SomeClass c = new SomeNS.SomeClass();
    }
}


The module constructor of TestLib is getting called when using MS.NET but not by Mono, does this qualify as a bug ?

PS: A module constructor of an executable is getting called, the problem is with module constructors of external assemblies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061230/b51c60a7/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestLib.zip
Type: application/octet-stream
Size: 851 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061230/b51c60a7/attachment.obj 


More information about the Mono-devel-list mailing list