The System.Resources namespace provides classes and interfaces that allow developers to create, store, and manage various culture-specific resources used in an application. One of the most important classes of the System.Resources namespace is the ResourceManager class.
The ResourceManager class allows the user to access and control resources stored in the main assembly or in resource satellite assemblies. Use the ResourceManager.GetObject and ResourceManager.GetString methods to retrieve culture-specific objects and strings.
Class | Description |
---|---|
class MissingManifestResourceException | The exception thrown if the main assembly does not contain the resources for the neutral culture, and they are required because of a missing appropriate satellite assembly. |
class NeutralResourcesLanguageAttribute | Informs the ResourceManager of the neutral culture of an assembly. This class cannot be inherited. |
class ResourceManager | Provides convenient access to culture-specific resources at runtime. |
class ResourceReader | Enumerates .resources files and streams, reading sequential resource name and value pairs. |
class ResourceSet | Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules. |
class ResourceWriter | Writes resources in the system-default format to an output file or an output stream. |
class SatelliteContractVersionAttribute | Instructs the ResourceManager to ask for a particular version of a satellite assembly to simplify updates of the main assembly of an application. |
Interface | Description |
---|---|
interface IResourceReader | Provides the base functionality to read data from resource files. |
interface IResourceWriter | Provides functionality to write resources to an output file or stream. |