What is the difference between .resx and .config files in .NET?

When should I use the .resx file and when do I go to the .config file?

What is the main difference between them both in terms of use?

+3
source share
3 answers

If you have text on a page that you want to display differently for different languages, or you can change it without recompiling the application, you can put it in a resource file.

The configuration file contains application configurations. The configuration file is a (more) secure place to store information and should be kept as small as possible. You will also have only one configuration file for each instance of the application (or at least a project), while you can have many resource files, for example, a web project can have a resource file for each web page.

+5
source

resx are for localized resources. You also need them for non-string resources. .config, as the name suggests, for configuration information

+1
source

, , resx , / (, )

0
source

Source: https://habr.com/ru/post/1702963/


All Articles