Initializes a new instance of the CustomFormatAttribute class.

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

Syntax

C#
public CustomFormatAttribute(
	Type formatterType,
	params Object[] formatterArgs
)
Visual Basic
Public Sub New ( _
	formatterType As Type, _
	ParamArray formatterArgs As Object() _
)
Visual C++
public:
CustomFormatAttribute(
	Type^ formatterType, 
	... array<Object^>^ formatterArgs
)

Parameters

formatterType
Type: System..::..Type
Type of the formatter. The type must implement ITypeFormatter.
formatterArgs
Type: array<System..::..Object>[]()[][]
The formatter constructor arguments.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf formatterType does not implement ITypeFormatter or can't be instantiated.
System..::..ArgumentNullExceptionIf formatterType is null

See Also