Because in most cases u will simply use MainModule instead of
enumerating Modules. And this code will work in, let's say, 95% of
cases.

On Nov 8, 7:30 am, Konstantin Zertsekel <[email protected]> wrote:
> >>     single-manifest assembly module (from Microsoft .NET Framework) will
> >> always have its MainModule equal to its only one module in asm.Modules?
> > Yeah, assemblies with one module will have their MainModule property
> > populated by the same and only instance you'll find in the Modules
> > collection.
>
> But then why 'MainModule' exists at all if the most general and sufficient
> way is to deal with 'Modules'?

-- 
--
mono-cecil

Reply via email to