Registers a formatter for the specified type.

Namespace: Simol.Formatters
Assembly: Simol (in Simol.dll) Version: 1.0.0.0

Syntax

C#
public void SetFormatter(
	Type propertyType,
	ITypeFormatter formatter
)
Visual Basic
Public Sub SetFormatter ( _
	propertyType As Type, _
	formatter As ITypeFormatter _
)
Visual C++
public:
void SetFormatter(
	Type^ propertyType, 
	ITypeFormatter^ formatter
)

Parameters

propertyType
Type: System..::..Type
The type to format.
formatter
Type: Simol..::..ITypeFormatter
The formatter.

Remarks

Replaces any formatter previously registered for the property type.

See Also