Current InputLanguage : InputLanguage « I18N Internationalization « C# / CSharp Tutorial






using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Forms;
using System.Data;

class MainClass{

  static void Main()
  {
    InputLanguage inL = InputLanguage.CurrentInputLanguage;

    CultureInfo info = inL.Culture;

    Console.WriteLine("Culture identifier = {0}\n"+
                    "Display name = {1}\n"+
              "Calender = {2}\n",
              info.ToString(),
              info.DisplayName,
                    info.Calendar.ToString());
  }
}
Culture identifier = en-US
Display name = English (United States)
Calender = System.Globalization.GregorianCalendar








21.8.InputLanguage
21.8.1.Current InputLanguage