Re-enable CA1802 (use consts instead of readonly statics) (#39782)
commit216fad51777dc5eb4f62ab43d8109629d4c13157
authorStephen Toub <stoub@microsoft.com>
Fri, 26 Jul 2019 02:02:21 +0000 (25 22:02 -0400)
committerMarek Safar <marek.safar@gmail.com>
Fri, 26 Jul 2019 18:08:24 +0000 (26 20:08 +0200)
treed0d4461af0069aeb8bb1c113dfb625b6c4d28410
parent51aa4b019abdd61088968c4dac727c08f23df577
Re-enable CA1802 (use consts instead of readonly statics) (#39782)

* Re-enable CA1802 (use consts instead of readonly statics)

I enabled it only for privates and internals, as we've previously violated this in public surface area, and as everything goes through API review moving forward, didn't seem worthwhile fighting it and adding suppressions in various places.

* Address PR feedback

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs