mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Implemented format providers
This commit is contained in:
parent
d807049b9f
commit
20cbac3155
2 changed files with 10 additions and 12 deletions
|
@ -256,13 +256,14 @@ namespace System.Globalization {
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
|
||||||
/*public static NumberFormatInfo GetInstance(IFormatProvider formatProvider)
|
public static NumberFormatInfo GetInstance(IFormatProvider formatProvider)
|
||||||
{
|
{
|
||||||
// Fast case for a regular CultureInfo
|
// Fast case for a regular CultureInfo
|
||||||
/*NumberFormatInfo info;
|
NumberFormatInfo info;
|
||||||
CultureInfo cultureProvider = formatProvider as CultureInfo;
|
CultureInfo cultureProvider = formatProvider as CultureInfo;
|
||||||
if (cultureProvider != null && !cultureProvider.m_isInherited) {
|
if (cultureProvider != null && !cultureProvider.[Friend]m_isInherited)
|
||||||
info = cultureProvider.numInfo;
|
{
|
||||||
|
info = cultureProvider.mNumInfo;
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
@ -281,10 +282,8 @@ namespace System.Globalization {
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CurrentInfo;*/
|
return CurrentInfo;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*public Object Clone()
|
/*public Object Clone()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1510,12 +1510,11 @@ namespace System
|
||||||
|
|
||||||
static NumberFormatInfo sDefaultNFI = new NumberFormatInfo() ~ delete _;
|
static NumberFormatInfo sDefaultNFI = new NumberFormatInfo() ~ delete _;
|
||||||
|
|
||||||
private NumberFormatInfo GetNumberFormatInstance (IFormatProvider fp)
|
private NumberFormatInfo GetNumberFormatInstance(IFormatProvider fp)
|
||||||
{
|
{
|
||||||
/*if (_nfi != null && fp == null)
|
if (_nfi != null && fp == null)
|
||||||
return _nfi;
|
return _nfi;
|
||||||
return NumberFormatInfo.GetInstance (fp);*/
|
return NumberFormatInfo.GetInstance(fp);
|
||||||
return sDefaultNFI;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CultureInfo CurrentCulture
|
CultureInfo CurrentCulture
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue