Table of Contents

Method Add

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Add<TImplementation>(Func<T1, TImplementation>)

Registers a factory method for creating instances of TImplementation.

public void Add<TImplementation>(Func<T1, TImplementation> factory) where TImplementation : TBase

Parameters

factory Func<T1, TImplementation>

The factory method that creates instances of TImplementation.

Type Parameters

TImplementation

The type of object to be created by the factory method.