As the title says then the question is relative simple however I cant decide whether a resource file with strings in is better than hard-coded strings... Whats your opinion?
Thanks in advance
Main advantage is in localisation. Performance wise resources have a little more overhead but really not much of an issue.
If I am not worried at all about localisation then I would use constants (and not hard-coded strings).
Have a realistic look at your application.
Reasons for resource files:
Reasons for hard-coded strings:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With