Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NumberFormatInfo::CurrentInfo Property

 

Gets a read-only NumberFormatInfo that formats values based on the current culture.

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public:
property NumberFormatInfo^ CurrentInfo {
	static NumberFormatInfo^ get();
}

Property Value

Type: System.Globalization::NumberFormatInfo^

A read-only NumberFormatInfo based on the culture of the current thread.

Retrieving a NumberFormatInfo object from the CurrentInfo property is equivalent to retrieving a NumberFormatInfo object from the CultureInfo.CurrentCulture.NumberFormat property.

The following example shows that the objects returned by the CurrentInfo and CultureInfo.CurrentCulture.NumberFormat properties are identical. It then uses reflection to display the property values of the NumberFormatInfo object returned by the CurrentInfo property on a system whose current culture is en-US.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: