* Added FormatProvider to Culture

afrisby
lbsa71 2007-10-11 10:33:23 +00:00
parent 23eeeaae03
commit e7869d0666
1 changed files with 18 additions and 10 deletions

View File

@ -8,16 +8,24 @@ namespace OpenSim.Framework
{
public class Culture
{
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
public static NumberFormatInfo NumberFormatInfo
{
get
{
return m_cultureInfo.NumberFormat;
}
}
private static readonly CultureInfo m_cultureInfo = new System.Globalization.CultureInfo("en-US", true);
public static NumberFormatInfo NumberFormatInfo
{
get
{
return m_cultureInfo.NumberFormat;
}
}
public static IFormatProvider FormatProvider
{
get
{
return m_cultureInfo;
}
}
public static void SetCurrentCulture()
{
Thread.CurrentThread.CurrentCulture = m_cultureInfo;