There is a debate between my team members about the declaration of a Constants class. We are moving the constant variables into a separate class like below.
public class Constants
{
public const string StateId = "ST";
public const string CountryId = "CI";
}
A few of my team members suggested that we declare the class as sealed to avoid overriding option, and a few are suggesting that we mark it as static to avoid instance creation of the Constant class.
However, I prefer to have it as Sealed with a static constructor, since it will help us to initialize the read-only variables in future need.
Please give us some advice on this.