ObjectReflectors Class

Provides methods for Reflector<T> (T is object).

C#
public static class ObjectReflectors
Inheritance
ObjectReflectors

Methods

Associate(Type, Injector, Action<Type, Reflector<object>>)

Creates a new Reflector<T> (T is object) and perform the specified action with the placeholder type and the new reflector associated with the specified type and injector.

Methods Detail

Associate(Type, Injector, Action<Type, Reflector<object>>)

Creates a new Reflector<T> (T is object) and perform the specified action with the placeholder type and the new reflector associated with the specified type and injector.

C#
public static void Associate(Type type, Injector injector, Action<Type, Reflector<object>> action)

Parameters

type
Type

The type of the value to be injected.

injector
Injector

The injector that injects the value to the field or with the method.

action
Action<Type, Reflector<object>>

The action that consumes two parameters, the one is the placeholder type, the other is the reflector object.