Method GetInstance
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
GetInstance<TImplementation>()
Gets an instance of TImplementation
using the registered factory method.
public TImplementation GetInstance<TImplementation>() where TImplementation : TBase
Returns
- TImplementation
An instance of
TImplementation
.
Type Parameters
TImplementation
The type of object to be created.
Exceptions
- InvalidOperationException
Thrown when no factory method is registered for the specified type.