A huge collection of 3400+ free website templates JAR theme com WP themes and more at the biggest community-driven free web design site
Ana Sayfa / Yazılım / C# / Direct load resource resx from assembly
wifi şifresi

Direct load resource resx from assembly

Look this code.

assembly load from tr\WinformLangs.resources.dll this path.

and look here : WinformLangs.Resources.tr
we are intialize resource manager with language locale string.

var fullPath = Path.Combine(Directory.GetCurrentDirectory(), "tr\\WinformLangs.resources.dll");
            Assembly assembly = Assembly.LoadFrom(fullPath);
            string[] resourceNames = assembly.GetManifestResourceNames();

            System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager("WinformLangs.Resources.tr", assembly);
            var t =resourceManager.GetString("Label1");


Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Altunizade Mah. SirmaPerde Sok.
Tel: +90 216 474 40 38
Fax: +90 216 474 40 68