Although it is not possible with Mono.Cecil as Jb pointed out, it may
be worth pointing out that you can access it with standard Reflection:

    var rawCIL = typeof(NameOfYourType)
        .GetMethod("NameOfYourMethod")
        .GetMethodBody()
        .GetILAsByteArray();


On May 4, 6:44 pm, Mikael Sundberg <[email protected]> wrote:
> Is it possible to access the raw CIL of a method using cecil? I need
> the raw CIL to be able to simply compare two methods using a checksum
> calculated from it.

-- 
--
mono-cecil

Reply via email to