Table of Contents

Method GetSources

Namespace
Sccg
Assembly
Sccg.dll

GetSources<T>(bool)

Gets sources by the specified type.

public ReadOnlyCollection<T> GetSources<T>(bool allowEmptyReturn = false) where T : ISource

Parameters

allowEmptyReturn bool

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

Returns

ReadOnlyCollection<T>

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

Type Parameters

T

A type of the source you want to get.

Exceptions

InvalidOperationException

Not found the specified type source and allowEmptyReturn is false.