Posted By

heathbo on 07/08/14


Tagged


Versions (?)

How to suppress an error than keeps the solution from building


 / Published in: C#
 

Paste the code below, above the the method that's causing the error.

Replace Microsoft.Performance with the type of error it is. Replace CA1822 with the error number. Look up what the error number is and replace MarkMemberAsStatic with its definition. Replace the Justification string with the reason you're suppressing the error.

  1. [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "Not Implemented Yet")]

Report this snippet  

You need to login to post a comment.