Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/UInt16.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/UInt16.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/System.Private.CoreLib/shared/System/UInt16.cs b/src/System.Private.CoreLib/shared/System/UInt16.cs
index 5d21225b8..c79707270 100644
--- a/src/System.Private.CoreLib/shared/System/UInt16.cs
+++ b/src/System.Private.CoreLib/shared/System/UInt16.cs
@@ -69,23 +69,23 @@ namespace System
// Converts the current value to a String in base-10 with no extra padding.
public override String ToString()
{
- return Number.FormatUInt32(m_value, null, NumberFormatInfo.CurrentInfo);
+ return Number.FormatUInt32(m_value, null, null);
}
public String ToString(IFormatProvider provider)
{
- return Number.FormatUInt32(m_value, null, NumberFormatInfo.GetInstance(provider));
+ return Number.FormatUInt32(m_value, null, provider);
}
public String ToString(String format)
{
- return Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo);
+ return Number.FormatUInt32(m_value, format, null);
}
public String ToString(String format, IFormatProvider provider)
{
- return Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider));
+ return Number.FormatUInt32(m_value, format, provider);
}
// TODO https://github.com/dotnet/corefx/issues/23642: Remove once corefx has been updated with new overloads.
@@ -94,7 +94,7 @@ namespace System
public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider provider = null)
{
- return Number.TryFormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider), destination, out charsWritten);
+ return Number.TryFormatUInt32(m_value, format, provider, destination, out charsWritten);
}
[CLSCompliant(false)]