开发者

FX Cop still erroring after i suppress

<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", Justification:="Needs function to return two values.")> _
<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification:="Needs开发者_高级运维 function to return two values.")> _

I am trying to suppress these two errors. I put them right above the method. But after i build i am still getting errors

Does anyone know of a reason why this would not suppress the error?


You probably need to add the CODE_ANALYSIS compilation flag to your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜