mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Added FormatProvider to Culture
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user