asp.net.ph

NumberFormatInfo.GetInstance Method

System.Globalization Namespace   NumberFormatInfo Class


Gets the NumberFormatInfo associated with the specified IFormatProvider.

[ VB ]
public Shared Function GetInstance ( _
   ByVal formatProvider As IFormatProvider _
) As NumberFormatInfo

[ C# ]
public static NumberFormatInfo GetInstance ( 
   IFormatProvider formatProvider
);

[ C++ ]
public: static NumberFormatInfo* GetInstance ( 
   IFormatProvider* formatProvider
);

[ JScript ]
static function GetInstance ( 
   formatProvider : IFormatProvider
) : NumberFormatInfo;

Parameters

formatProvider
The IFormatProvider used to get the NumberFormatInfo.

-or-

A null reference ( Nothing in Visual Basic ) to get CurrentInfo.

Return Value

The NumberFormatInfo associated with the specified IFormatProvider.

Remarks

This method uses the IFormatProvider.GetFormat method of formatProvider using NumberFormatInfo as the Type parameter. If formatProvider is a null reference ( Nothing in Visual Basic ) or if IFormatProvider.GetFormat returns a null reference ( Nothing ), this method returns CurrentInfo.

You can get a NumberFormatInfo for a specific culture using one of the following methods:

A NumberFormatInfo can be 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 CultureInfo class.

See Also

NumberFormatInfo Members   IFormatProvider Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph