sparrows81
sparrows81

Reputation: 431

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">

Upvotes: 1

Views: 967

Answers (1)

Remy
Remy

Reputation: 12703

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

Upvotes: 4

Related Questions