Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IFormatter Interface

Interface that should be implemented by all formatters.

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

Spring.Globalization.IFormatter
   Spring.DataBinding.IBindingAwareFormatter

[Visual Basic]
Public Interface IFormatter
[C#]
public interface IFormatter

Types that implement IFormatter

Type Description
DataSourceItemFormatter This formatter acts as an adapter to a datasource. It parses a given datasource into a table to allow converting back and forth between objects and their keys during formatting.
BooleanFormatter Implementation of IFormatter that can be used to format and parse boolean values.
CurrencyFormatter Implementation of IFormatter that can be used to format and parse currency values.
DateTimeFormatter Implementation of IFormatter that can be used to format and parse DateTime values.
FilteringFormatter Provides base functionality for filtering values before they actually get parsed/formatted.
FloatFormatter Implementation of IFormatter that can be used to format and parse floating point numbers.
HasTextFilteringFormatter Replaces input strings with a given default value, if they are null or contain whitespaces only,
IntegerFormatter Implementation of IFormatter that can be used to format and parse integer numbers.
NullFormatter Implementation of IFormatter that simply calls ToString.
NumberFormatter Implementation of IFormatter that can be used to format and parse numbers.
PercentFormatter Implementation of IFormatter that can be used to format and parse numbers.

Remarks

Formatters assume that source value is a string, and make no assumptions about the target value's type, which means that Parse method can return object of any type.

Requirements

Namespace: Spring.Globalization

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

See Also

IFormatter Members | Spring.Globalization Namespace