简体   繁体   中英

Cache resource files to improve performance

I want to cache resource files to improve performance. Are resource files actually cached?

When i get a value from resources file like this:

Label1.text=   Resource1.String1

The resourcemanager get it from memory/ compiled c# code? or the value is retrieved each time from a serialized string in a file

  <data name="String1" xml:space="preserve">

It's automatically cached, no matter if it is local or global. Assuming you are using the default resx provider.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM