- using System;
- using System.Resources;
- using System.Drawing;
- class Class1
- {
- static void Main()
- {
- ResourceWriter rw = new ResourceWriter("Demo.resources");
- using (Image image = Image.FromFile("logo.gif"))
- {
- rw.AddResource("WroxLogo", image);
- rw.AddResource("Title", "Professional C#");
- rw.AddResource("Chapter", "Localization");
- rw.AddResource("Author", "Christian Nagel");
- rw.AddResource("Publisher", "Wrox Press");
- rw.Close();
- }
- }
- }