ResourceSet Class
Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules.
Assembly: mscorlib (in mscorlib.dll)
The ResourceSet type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | ResourceSet() | Initializes a new instance of the ResourceSet class with default properties. |
![]() ![]() | ResourceSet(IResourceReader) | Creates a new instance of the ResourceSet class using the specified resource reader. |
![]() ![]() | ResourceSet(Stream) | Creates a new instance of the ResourceSet class using the system default ResourceReader that reads resources from the given stream. |
![]() ![]() | ResourceSet(String) | Creates a new instance of the ResourceSet class using the system default ResourceReader that opens and reads resources from the given file. |
| Name | Description | |
|---|---|---|
![]() ![]() | Close | Closes and releases any resources used by this ResourceSet. |
![]() ![]() | Dispose() | Disposes of the resources (other than memory) used by the current instance of ResourceSet. |
![]() ![]() | Dispose(Boolean) | Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested. |
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetDefaultReader | Returns the preferred resource reader class for this kind of ResourceSet. |
![]() | GetDefaultWriter | Returns the preferred resource writer class for this kind of ResourceSet. |
![]() ![]() | GetEnumerator | Returns an IDictionaryEnumerator that can iterate through the ResourceSet. |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetObject(String) | Searches for a resource object with the specified name. |
![]() ![]() | GetObject(String, Boolean) | Searches for a resource object with the specified name in a case-insensitive manner, if requested. |
![]() ![]() | GetString(String) | Searches for a String resource with the specified name. |
![]() ![]() | GetString(String, Boolean) | Searches for a String resource with the specified name in a case-insensitive manner, if requested. |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ReadResources | Reads all the resources and stores them in a Hashtable indicated in the Table property. |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() ![]() | Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() ![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Reader | Indicates the IResourceReader used to read the resources. |
![]() ![]() | Table | The Hashtable in which the resources are stored. |
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | IEnumerable::GetEnumerator | Returns an IEnumerator object to avoid a race condition with Dispose. This member is not intended to be used directly from your code. |
The ResourceSet class enumerates over an IResourceReader, loading every name and value, and storing them in a Hashtable. A custom IResourceReader can be used.
See Encoding and Localization for details on the default resource file format.
Notes to InheritorsDerived classes of ResourceSet using their own resource reader and writer should override GetDefaultReader, and GetDefaultWriter, to provide the appropriate functionality for interpreting the ResourceSet.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
