|
using System.Globalization;
namespace BusinessRules.Evolution_Five
{
/// <summary>
/// Abstraction of the CultureInfo functionality to provides information
/// about the current specific culture, such as the names of the culture,
/// the writing system, the calendar used, and how to format dates and sort strings.
/// </summary>
public class CurrentCultureInfo : ICurrentCultureInfo
{
#region Fields
private CultureInfo cultureInfo;
#endregion
#region C'tors
/// <summary>
/// Initializes a new instance of the <see cref="CurrentCultureInfo"/> class.
/// </summary>
public CurrentCultureInfo()
{
cultureInfo = CultureInfo.CurrentCulture;
}
#endregion
#region Properties
/// <summary>
/// Gets the name of the current culture.
/// </summary>
/// <value>The name of the current culture.</value>
public string CurrentCultureName
{
get { return cultureInfo.Name; }
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.