Class1.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:1k
- using System;
- using System.Globalization;
- namespace Wrox.ProCSharp.Localization
- {
- /// <summary>
- /// Summary description for Class1.
- /// </summary>
- class Class1
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- DatabaseResourceManager rm = new DatabaseResourceManager("server=localhost;database=LocalizationDemo;trusted_connection=true");
- string spanishWelcome = rm.GetString("Welcome", new CultureInfo("es-ES"));
- string italianThankyou = rm.GetString("Thank you", new CultureInfo("it"));
- string threadDefaultGoodMorning = rm.GetString("Good Morning");
- Console.WriteLine(threadDefaultGoodMorning);
- }
- }
- }