tags:

views:

12

answers:

1
<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?

+1  A: 

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

Nicole Calinoiu
k i'll look into that thx