Is it a BUG in the metadata definition?

Jan 12, 2010 at 5:50 PM

if you decorate custome metadata attribute to allow multiple it fail to compose (bring zero results)

when i remove the allow multiple it is working fine.

[AttributeUsage (AttributeTargets.Class, AllowMultiple=true)]

here is a code snippet that ilustrate the problem

Jan 12, 2010 at 6:16 PM
Edited Jan 12, 2010 at 6:17 PM

Actually the problem lies in your metadata interface. When AllowMultiple is set to true then the metadata interface properties need to be collections (either arrays or IEumerable<T>).

Jan 12, 2010 at 7:22 PM