ResourceSet Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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) | Security Critical. Creates a new instance of a ResourceSet class that reads resources from the given stream. |
![]() | ResourceSet(String) | Security Critical. Creates a new instance of the ResourceSet class 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 the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetDefaultReader | Returns the preferred resource reader 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. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts 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 | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator | Returns an IEnumerator in order 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. A custom IResourceReader can be used.
Notes to InheritorsDerived classes of ResourceSet that use their own resource reader and writer should override GetDefaultReader to provide the appropriate functionality for interpreting the ResourceSet.





