Explain how to retrieve resources using ResourceManager class.

Last updated:9/23/2020 2:31:36 PM

1 Answers

Arun Singh
Arun Singh

ResourceManager class is used to retrieve resources at run time.
Create a ResourceManager with resource file name and the resource assembly as parameters.
After having created, you can use ResourceManager.GetString method to retrieve a string.
Use the ResourceManager.GetObject method to retrieve images and objects from a resource file.

Answer