Class ImplementationFactory<T1, TBase>
- Namespace
- Support
- Assembly
- Support.dll
public class ImplementationFactory<T1, TBase> : IEnumerable<Func<T1, TBase>>, IEnumerable where TBase : notnull
Type Parameters
T1
TBase
- Inheritance
-
ImplementationFactory<T1, TBase>
- Implements
-
IEnumerable<Func<T1, TBase>>
- Inherited Members
- Extension Methods
Methods
Add<TImplementation>(Func<T1, TImplementation>)
public void Add<TImplementation>(Func<T1, TImplementation> factory) where TImplementation : TBase
Parameters
factory
Func<T1, TImplementation>
Type Parameters
TImplementation
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Func<T1, TBase>> GetEnumerator()
Returns
- IEnumerator<Func<T1, TBase>>
An enumerator that can be used to iterate through the collection.
GetInstance<TImplementation>(T1)
public TImplementation GetInstance<TImplementation>(T1 arg1) where TImplementation : TBase
Parameters
arg1
T1
Returns
- TImplementation
Type Parameters
TImplementation