ReflectorMap<K, V> Class

The map of a key to the Reflector<T> object.

C#
public abstract class ReflectorMap<K, V> : Dictionary<K, Reflector<V>>

Type Parameters

K

The type of a key.

V

The type of a value of the Reflector<T>.

Inheritance
ReflectorMap<K, V>
Implements

Constructors

ReflectorMap()

Initializes a new instance of the ReflectorMap<K, V> class.

Properties

Methods

ToInjector(FieldInfo)

Gets the new Injector that injects a value to the specified field.

ToInjector(MethodInfo)

Gets the new Injector that injects a value with the specified method.

Put(K, Reflector<V>)

Associates the Reflector<T> object with the specified key in this map.

Add(TKey, TValue) (Inherited from Dictionary<TKey, TValue>)
Clear() (Inherited from Dictionary<TKey, TValue>)
ContainsKey(TKey) (Inherited from Dictionary<TKey, TValue>)
ContainsValue(TValue) (Inherited from Dictionary<TKey, TValue>)
GetEnumerator() (Inherited from Dictionary<TKey, TValue>)
Remove(TKey) (Inherited from Dictionary<TKey, TValue>)
TryGetValue(TKey, TValue) (Inherited from Dictionary<TKey, TValue>)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

ReflectorMap()

Initializes a new instance of the ReflectorMap<K, V> class.

C#
protected ReflectorMap()

Methods Detail

ToInjector(FieldInfo)

Gets the new Injector that injects a value to the specified field.

C#
protected static Injector ToInjector(FieldInfo info)

Parameters

info
FieldInfo

The field information associated with the field where the value is injected.

Returns

The new Injector.

ToInjector(MethodInfo)

Gets the new Injector that injects a value with the specified method.

C#
protected static Injector ToInjector(MethodInfo info)

Parameters

info
MethodInfo

The method information associated with the method which the value is injected with.

Returns

The new Injector.

Put(K, Reflector<V>)

Associates the Reflector<T> object with the specified key in this map.

C#
protected void Put(K key, Reflector<V> reflector)

Parameters

key
K

A key of the map.

reflector
Reflector<V>

The reflector to be associated with the key.

Remarks

No Reflector<T> must be associated with the specified key on ahead.