It seems Rene has already said that resharper gives this error. I suspended the rescuer, and now I'm not mistaken at all. So this is apparently a perfectly fine syntax in C # for attributes.
Why resharper gives this error, I do not know, however. Of course, this may be a strange syntax and against conventions, but that warns of errors.
source
share