I had wondered what IsPublic
and IsNotPublic were for, they seems contradictory... Is that naming derived from IL notation? Could perhaps be named better otherwise, or at least have some intellisense :) Thanks! On Oct 25, 12:17 pm, Jb Evain <[email protected]> wrote: > Hey, > > On Tue, Oct 25, 2011 at 12:48 PM, [email protected] > > <[email protected]> wrote: > > can I use Mono.Cecil to change: > > > public sealed class MyClass > > { > > } > > > to > > > internal sealed class MyClass > > { > > } > > Sure. > > var module = ModuleDefinition.ReadModule ("foo.dll"); > var type = module.GetType ("MyClass"); > > type.IsNotPublic = true; > > module.Write ("foo.dll"); > > Jb -- -- mono-cecil
