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
factory
Func<TImplementation>The factory method that creates instances of
TImplementation
.
Type Parameters
TImplementation
The type of object to be created by the factory method.