Reflectors Class

Provides factory methods of Reflector<T>.

C#
public static class Reflectors
Inheritance
Reflectors

Methods

Of<T>(Injector, Type, Sugarcoater<T>)

Gets a new instance of the Reflector<T> class.

Methods Detail

Of<T>(Injector, Type, Sugarcoater<T>)

Gets a new instance of the Reflector<T> class.

C#
public static Reflector<T> Of<T>(Injector inject, Type unitType, Sugarcoater<T> sugarcoater)

Type Parameters

T

The type of the value to be injected.

Parameters

inject
Injector

The delegate that injects the sugarcoated value to the field or with the method.

unitType
Type

Get the type of the unit.

sugarcoater
Sugarcoater<T>

The delegate that sugarcoats the specified value.

Returns

The new instance of the Reflector<T> class.