Gets the System.Globalization.NumberFormatInfo associated with the specified IFormatProvider.
- formatProvider
- The IFormatProvider used to get the System.Globalization.NumberFormatInfo.
The System.Globalization.NumberFormatInfo associated with the specified IFormatProvider.
This method uses the IFormatProvider.GetFormat(Type) method of formatProvider using System.Globalization.NumberFormatInfo as the Type parameter. If formatProvider is null or if IFormatProvider.GetFormat(Type) returns null, this method returns NumberFormatInfo.CurrentInfo.
Your application gets a System.Globalization.NumberFormatInfo object for a specific culture using one of the following methods:
Through the CultureInfo.NumberFormat property.
Through the NumberFormatInfo.GetInstance(IFormatProvider) method where provider is a System.Globalization.CultureInfo.
A System.Globalization.NumberFormatInfo object is created only for the invariant culture or for specific cultures, not for neutral cultures. For more information about the invariant culture, specific cultures, and neutral cultures, see the System.Globalization.CultureInfo class.