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
TBase type to discover for - must be an abstract class or an interface.
- Inheritance
-
InstancesOf<T>
- Implements
-
IInstancesOf<T>IEnumerable<T>
- 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
typesITypesITypes used for finding types.
serviceProviderIServiceProviderIServiceProvider 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>