.NET Portable TypeCast  3.1.0.4
A, easy-to-use tested, generic, portable, runtime-extensible, arbitrary type converter library
Core.TypeCast.Base.DependencyInjection< TDependency > Class Template Reference

The generic class used for deriving specific dependency-injection classes, used for reflection, filtering, and strict checks at compile time. More...

+ Collaboration diagram for Core.TypeCast.Base.DependencyInjection< TDependency >:

Protected Member Functions

 DependencyInjection (TDependency injector)
 Initializes a new instance of the abstract DependencyInjection<TDependency> class. More...
 

Detailed Description

The generic class used for deriving specific dependency-injection classes, used for reflection, filtering, and strict checks at compile time.

Template Parameters
TDependencyThe Type of the dependency
Exceptions
DependencyInjectionExceptionIf the injector is null a DependencyInjectionException is thrown
See also
ConverterCollectionDependency

Definition at line 26 of file DependencyInjection.cs.

Constructor & Destructor Documentation

Core.TypeCast.Base.DependencyInjection< TDependency >.DependencyInjection ( TDependency  injector)
protected

Initializes a new instance of the abstract DependencyInjection<TDependency> class.

Parameters
injectorThe injector injection parameter which is required as an argument of the parent class constructor for dependency injection.
Exceptions
DependencyInjectionExceptionIf the injector is null a DependencyInjectionException is thrown

Definition at line 35 of file DependencyInjection.cs.

36  {
37  if(injector == null)
38  {
39  throw new DependencyInjectionException(message: nameof(NullReferenceException), innerException: new NullReferenceException());
40  }
41  }

The documentation for this class was generated from the following file: