Table of Contents

Class ImplementationFactory<TBase>

Namespace
Support
Assembly
Support.dll
public class ImplementationFactory<TBase> : IEnumerable<Func<TBase>>, IEnumerable where TBase : notnull

Type Parameters

TBase
Inheritance
ImplementationFactory<TBase>
Implements
Inherited Members
Extension Methods

Methods

Add<TImplementation>(Func<TImplementation>)

public void Add<TImplementation>(Func<TImplementation> factory) where TImplementation : TBase

Parameters

factory Func<TImplementation>

Type Parameters

TImplementation

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<Func<TBase>> GetEnumerator()

Returns

IEnumerator<Func<TBase>>

An enumerator that can be used to iterate through the collection.

GetInstance<TImplementation>()

public TImplementation GetInstance<TImplementation>() where TImplementation : TBase

Returns

TImplementation

Type Parameters

TImplementation