You can use the SupressMessage attribute as follows: -
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2233:OperationsShouldNotOverflow", MessageId = "newValue+1", Justification = "The reason I think its acceptable in this case")] void SomeMethod() {
About a method, property, type, etc.
AnthonyWJones
source share