Table of Contents

Method GetContentConverters

Namespace
Sccg
Assembly
Sccg.dll

GetContentConverters<T>(bool)

Gets content converters by the specified type.

public ReadOnlyCollection<T> GetContentConverters<T>(bool allowEmptyReturn = false) where T : IContentConverter

Parameters

allowEmptyReturn bool

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

Returns

ReadOnlyCollection<T>

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

Type Parameters

T

A type of the content converter you want to get.

Exceptions

InvalidOperationException

Not found the specified type content converter and allowEmptyReturn is false.