Table of Contents

Method Inject

Namespace
Anvil.Services
Assembly
NWN.Anvil.dll

Inject<T>(T)

Injects all properties with InjectAttribute in the specified object.

public T Inject<T>(T instance)

Parameters

instance T

The instance to inject.

Returns

T

The instance with injected dependencies.

Type Parameters

T

The instance type.