Method GetWriters
- Namespace
- Sccg
- Assembly
- Sccg.dll
GetWriters<T>(bool)
Gets writers by the specified type.
public ReadOnlyCollection<T> GetWriters<T>(bool allowEmptyReturn = false) where T : IWriter
Parameters
allowEmptyReturn
boolIf true, the return value array is allowed to be empty.
Returns
- ReadOnlyCollection<T>
Array of writer. If
allowEmptyReturn
is false, the array will contain at least one writer.
Type Parameters
T
A type of the writer you want to get.
Exceptions
- InvalidOperationException
Not found the specified type writer and
allowEmptyReturn
is false.