Method Add
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Add<TImplementation>(Func<TImplementation>)
Registers a factory method for creating instances of TImplementation.
public void Add<TImplementation>(Func<TImplementation> factory) where TImplementation : TBase
Parameters
factoryFunc<TImplementation>The factory method that creates instances of
TImplementation.
Type Parameters
TImplementationThe type of object to be created by the factory method.