There is currently an ApplicationConfiguration class in our application. This is basically just a static class with values constdefining some application-global configuration application configuration parameters. Some of these values โโwill rarely ever change and will only be introduced into the configuration for elegance / cleanliness. Currently it is tightly attached to something like 100, which is good for all practical applications. โ
Some of these meanings, however, must be different between production and development. Therefore, I consider creating this class only with a wrapper over Web.config. These values โโare checked many times throughout our code base. If I changed them from constto read-only, which reads from Web.config, will this affect the compiler optimization or will make our application slower?
Earlz source
share