Home Dashboard Directory Help

Can't avoid warning on private thing with attribute using array arguments applied by Ryan Lamansky



Sign in
to vote
Type: Bug
ID: 800838
Opened: 9/15/2013 6:47:07 PM
Access Restriction: Public
User(s) can reproduce this bug


It's impossible to avoid a warning on any private thing where an attribute accepting an array is used. Warning "CS3016: Arrays as attribute arguments is not CLS-compliant" is produced, unless System.CLSCompliant(false) is applied, then the warning changes to "CS3019: CLS compliance checking will not be performed on 'something' because it is not visible from outside this assembly".
Sign in to post a comment.
Posted by Microsoft on 2/17/2014 at 1:26 PM
Hey Ryan,

Thanks for taking the time to report this issue. We agree that the current behavior is confusing, unhelpful, and just plain wacky. We'll try to fix this issue for the next release of the compiler.


Anthony D. Green | Program Manager | Visual Basic & C# Languages Team
Posted by Microsoft on 9/16/2013 at 5:26 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 9/15/2013 at 6:53 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.