Hi Kevin, Thanks for the fantastic repro.
On Sun, Feb 27, 2011 at 11:01 PM, Kevin Jones <[email protected]> wrote: > Thanks for taking your time to look at this. So, the issue is indeed due to how custom attributes are encoded, for types, as a plain string. For speed reason, Cecil when roundtripping an assembly, doesn't deserialize custom attributes before serializing them back, but simply copy their byte[] value over to the new assembly. In your case, it's enough to load the CustomAttributes of the types. For instance, if you make sure you access the .ConstructorArguments of the CustomAttribute on SomeType, your test will pass. I'm afraid you'll indeed have to force yourself the load of the attributes content. There's currently no helper method in Cecil to ease that. Jb -- -- mono-cecil
