Table of Contents

Method GetFormatters

Namespace
Sccg
Assembly
Sccg.dll

GetFormatters<T>(bool)

Gets formatters by the specified type.

public ReadOnlyCollection<T> GetFormatters<T>(bool allowEmptyReturn = false) where T : IFormatter

Parameters

allowEmptyReturn bool

If true, the return value array is allowed to be empty.

Returns

ReadOnlyCollection<T>

Array of formatter. If allowEmptyReturn is false, the array will contain at least one formatter.

Type Parameters

T

A type of the formatter you want to get.

Exceptions

InvalidOperationException

Not found the specified type formatter and allowEmptyReturn is false.