Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Arrays as attribute arguments is not CLS-compliant' warning, but no type information given

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?

like image 725
thecoop Avatar asked Oct 28 '09 14:10

thecoop


1 Answers

CS3016.

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

like image 141
Darin Dimitrov Avatar answered Sep 21 '22 23:09

Darin Dimitrov