Hi,

I've been reading https://github.com/mono/cecil/tree/master/merge/Mono.Merge
and I'm close to understanding it but I feel im missing something
rather simple...

How can I copy a type from one assembly to another, currently I'm
doing this:

var t = assemblyDefA.MainModule.GetType("some name");
assemblyDefB.MainModule.Types.Add(t);

but I get "Type already attached".

How can I achieve this?

Thanks!

-- 
--
mono-cecil

Reply via email to