Table of Contents

Method GetInstance

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

GetInstance<TImplementation>(T1)

Gets an instance of TImplementation using the registered factory method.

public TImplementation GetInstance<TImplementation>(T1 arg1) where TImplementation : TBase

Parameters

arg1 T1

The first argument to pass to the factory method.

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.