views:

207

answers:

1

When compiling my solution, I get several warnings of the following:

warning CS3016: Arrays as attribute arguments is not CLS-compliant

No other information on what type is not compliant is given. In my projects I have some attributes that take params array arguments in their constructors, but they are all internal, and that shouldn't affect CLS-compliance. Why is this warning being given, and what type is it being given on?

+2  A: 

CS3016.

If you have an attribute which takes an array as argument and the project is marked as CLSCompliant you will get this warning.

Darin Dimitrov
But the attribute is internal to the assembly - not publically accessible. That should not affect the CLS compliance.
thecoop