コード例 #1
0
 /// <summary>
 ///     Gets the current users default culture.
 /// </summary>
 /// <returns>
 ///     The culture of the current user.
 /// </returns>
 /// <remarks>
 ///     <para>
 ///         The returned <see cref="CultureInfo" /> specifies the formatting culture of the current user.
 ///         It is not necessarily the same as for example <see cref="CultureInfo.CurrentCulture" /> as this might have been
 ///         modified by your or some other code.
 ///         <see cref="GetCurrentDefaultCulture" /> retrieves the default culture of the current user.
 ///     </para>
 /// </remarks>
 public static CultureInfo GetCurrentDefaultCulture()
 {
     return(new CultureInfo(WindowsUser.GetUserDefaultUILanguage(), true));
 }