开发者

FX Cop still erroring after i suppress

开发者 https://www.devze.com 2023-01-19 00:38 出处:网络
<System.Diagnostics.CodeAnalysis.SuppressMessage(\"Microsoft.Design\", \"CA1045:DoNotPassTypesByReference\", Justification:=\"Needs function to return two values.\")> _
<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

精彩评论

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