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
Post a Comment