Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceSet Class

Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules.

For a list of all members of this type, see ResourceSet Members.


[Visual Basic]
Public Class ResourceSet
   Implements IDisposable, IEnumerable
public class ResourceSet : IDisposable, IEnumerable
public __gc class ResourceSet : public IDisposable, IEnumerable
class ResourceSet implements IDisposable, IEnumerable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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 the Developing World-Ready Applications for details on the default resource file format.

Notes to Inheritors:  Derived classes of ResourceSet using their own resource reader and writer should override GetDefaultReader, and GetDefaultWriter, to provide the appropriate functionality for interpreting the ResourceSet.


Namespace: System.Resources

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

ResourceSet Members | System.Resources Namespace | Developing World-Ready Applications

© 2015 Microsoft