What are the benefits of resource(.resx) files?

Newbie picture Newbie · Jul 15, 2009 · Viewed 53.9k times · Source

What compelling reasons exist for using them?

Answer

womp picture womp · Jul 15, 2009
  • Resource files give you an easy way to localize/internationalize your .net applications by automatically determining which language resx file to use based on the user's locale. To add more languages, simply add another translated resource file.

  • Resource files give you a central location to store your strings, files and scripts and refer to them in a strongly-typed manner (so the compile will break if you reference them improperly).

  • Resource files can be compiled into satellite assemblies, making it easy to change up the resources in a production application without having to recompile the whole thing.