On Tue, Aug 17, 2010 at 3:19 PM, Knight Commander
<[email protected]> wrote:
> TypeDefinition type = new TypeDefinition("ghoori", "chai",
> TypeAttributes.Class);
You should pass the import of typeof (object) as the base type of your class.
> ModuleDefinition mod = assm.Modules[0];
> mod.Types.Add(type);
> FieldDefinition fild = new FieldDefinition("initdar",
> FieldAttributes.Private, mod.Import(typeof (byte[])));
You have to pass FieldAttributes.Static | FieldAttributes.HasFieldRVA
--
Jb EvainĀ <[email protected]>
--
--
mono-cecil