c# - Best practice for storing application const strings in the code -


in application (c#) have lots of const messages printed log, presented user, etc. const messages not suppose change there no point putting them in external file or db. solution simple - thinking creating static class , naming constmessages. class hold lots of public const string variables can accessed anywhere in application. can please suggest if there wrong method , if there better ways? thanks!

i use readonly instead of const on versioning issues.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -