Table of Contents

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

T

The type of object to be created.

TC

The 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

config TC

The configuration data used to create the object.

Returns

T

A new instance of type T.