ResourceViewer Technology Sample
This sample provides a viewer for strongly typed resources. It loads and analyzes resource files that are generated by theutility, and displays details about the resources stored in them, using a . This sample is available only in C#.
For information about using the samples, see the following topics:
To build the sample using the Command Prompt
Open a command prompt window and navigate to the ResourceViewer directory.
Type msbuild ResourceViewer.sln at the command line.
To build the sample using Visual Studio
Open Windows Explorer and navigate to the ResourceViewer directory.
Double-click the icon for ResourceViewer.sln to open the file in Visual Studio.
Choose Build Solution from the Build menu, or press F5 to build and run the sample.
To run the sample
Open a command prompt window or Windows Explorer and navigate to the directory that contains the new executable.
Type ResourceViewer.exe at the command line, or double-click the icon in Windows Explorer to launch and run the sample.
In the sample window, choose Open Resource File from the File menu. The contents of the file are displayed in the DataGridView at left.
If you select an empty resource file, no message is displayed to inform you of that fact. The application does nothing.
.NET Framework Version: 2.0
Strongly typed resources.
Generic collections using custom types.
Use of type DataGridView to display lists of values.
The sample declares and uses a custom structure named resource. It uses this structure in a genericto store and retrieve values from the resource file.