Emitting a Module Constructor?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
From: Philip_L <Philip.Laure...@gmail.com>
Date: Tue, 2 Jun 2009 05:40:39 -0700 (PDT)
Local: Tues, Jun 2 2009 8:40 am
Subject: Emitting a Module Constructor?
How do you emit a module constructor with Cecil?
Is it just some static method named ".cctor" defined on the special
"<Module>" type in a given assembly?
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Lotfi Gheribi <gheri...@gmail.com>
Date: Tue, 2 Jun 2009 13:44:47 +0100
Local: Tues, Jun 2 2009 8:44 am
Subject: Re: [mono-cecil] Emitting a Module Constructor?
> How do you emit a module constructor with Cecil? > Is it just some static method named ".cctor" defined on the special > "<Module>" type in a given assembly?
Yep
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Jb Evain <j...@nurv.fr>
Date: Tue, 2 Jun 2009 14:55:47 +0200
Local: Tues, Jun 2 2009 8:55 am
Subject: Re: [mono-cecil] Emitting a Module Constructor?
Hey, On 6/2/09, Philip_L <Philip.Laure...@gmail.com> wrote: > How do you emit a module constructor with Cecil? > Is it just some static method named ".cctor" defined on the special > "<Module>" type in a given assembly?
As Lotfi said, yes. Just note that you can have only one of those, and that it have to be SpecialName | RTSpecialName. -- Jb Evain <j...@nurv.fr>
You must Sign in before you can post messages.
You do not have the permission required to post.
|
|
|