This rule is Obsolete | |
Synopsis: | Use a const field to define constant values |
Language: | C# |
Severity Level: | 3 |
Category: | Object lifecycle |
Description: |
Making it
private const int maxUsers = 100; Exception, If the value of a constant field must be calculated at run-time (in the static constructor), use a |