Vs Web.Config Variable Application Variable

Which is better in terms of performance?

  • Access to the global application variable (application ["foo"])

against

  • Accessing the AppSetting Variable from web.config

Does .NET use AppSetting variable caching so that it does not access the web.config file every time it is used?

+3
source share
2 answers

. appSettings . Application , , , . - , , .

appSettings , . AppDomain, . , web.config, AppDomain, , .

+5

appSettings -,

EDIT: , appSettings, Application . , .

0

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


All Articles