using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using Util; using System.Globalization; namespace HelloWorld { public class MyClass { public string MyString() { TextResourceHandler h = new TextResourceHandler ("HelloWorld.Language.HelloWorld", Assembly.GetExecutingAssembly()); string s = h.GetString("Some_Key_In_Resx_File"); return s; } public System.Object GetImage(string key_name) { TextResourceHandler h; // this name of resource file is a constant and not culturally related // In ORBIFLO we use resource files for images, but images are not // kept in resource files from localization perspective // its purely for customization only... // hence the usage or complete name of resource file h = new TextResourceHandler("HelloWorld.Language.HelloWorld", Assembly.GetExecutingAssembly()); System.Object imageStream = h.GetImage(key_name); return imageStream; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)