Class InstancesOf<T>

Namespace
Cratis.Types
Assembly
Cratis.Fundamentals.dll

Represents an implementation of IInstancesOf<T>.

public class InstancesOf<T> : IInstancesOf<T>, IEnumerable<T>, IEnumerable where T : class

Type Parameters

T

Base type to discover for - must be an abstract class or an interface.

Inheritance
InstancesOf<T>
Implements
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the InstancesOf<T> class.

Constructors

InstancesOf(ITypes, IServiceProvider)

Represents an implementation of IInstancesOf<T>.

public InstancesOf(ITypes types, IServiceProvider serviceProvider)

Parameters

types ITypes

ITypes used for finding types.

serviceProvider IServiceProvider

IServiceProvider used for managing instances of the types when needed.

Remarks

Initializes a new instance of the InstancesOf<T> class.

Methods

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>