Summary

Program localization is supported through resources. There are several ways to generate resources, depending on the resource type. The available formats are text files with name/value pairs of strings or XML files, which are specifically suited to binary resources. These two file types are then converted to binary resource files, which may be included in assemblies.

The ResGen tool, included in the .NET Frameworks SDK, enables conversion between different resource types. The ResXGen and ResEditor are sample programs included with the .NET Framework SDK that help manage resources.

Resource files are placed in specified directories so localized programs can find the right resources. ResourceManager is the primary class, providing management ...

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.