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");

  administrator

Bir cevap yazın

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

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