in the code i maintain someone has declared the following structure:
As you can see the declaration uses Attributes and an enum. R# thinks the usage of the enum here is invalid. VB compiles fine and the application works as expected. I have attached a small solution which reproduces the problem.