I have a resource (.resx) file, and it have currently 58 string properties. This amount of string properties can grow..
My doubt is, are those strings kept in memory? If i have 200, will all be kept in memory? Or the the strings are kept in file and the ResourceManager access the file? Or anything else? How this work?
Generally the .resx file is compiled into a .resources with resgen.exe file and stored as an assembly resource within the assembly itself. If you look at the properties of the ResX file in your Visual Studio project, you'll see that the Build Action is Embedded Resource, which is what causes it to become embedded into the assembly. So any time the assembly is loaded you will load the resource file as well. There might be another way to use resource files that does not keep them in memory but this is the normal way they are used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With