Interface
- Namespace
- CoreFramework
Defines a generic factory for creating instances of type T
using configuration data of type TC.
public interface IFactory<out T, in TC>
Type Parameters
TThe type of object to be created.
TCThe type of configuration data used to create the object.
- Extension Methods
Methods
Create(TC)
Creates an instance of type T using the provided configuration.
T Create(TC config)
Parameters
configTCThe configuration data used to create the object.
Returns
- T
A new instance of type
T.