Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NumberFormatter Class

Implementation of IFormatter that can be used to format and parse numbers.

For a list of all members of this type, see NumberFormatter Members .


[Visual Basic]
Public Class NumberFormatter
    Implements IFormatter
public class NumberFormatter : IFormatter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


NumberFormatter uses number-related properties of the NumberFormatInfo to format and parse numbers.

This formatter works with both integer and decimal numbers and allows you to format and parse numbers that conform to Number number style (leading and trailing white space and/or sign, thousands separator, decimal point)

If you use one of the constructors that accept culture as a parameter to create an instance of NumberFormatter, default NumberFormatInfo for the specified culture will be used.

You can also use properties exposed by the NumberFormatter in order to override some of the default number formatting parameters.


Namespace: Spring.Globalization.Formatters

Assembly: Spring.Core (in Spring.Core.dll)

See Also

NumberFormatter Members | Spring.Globalization.Formatters Namespace