ReflectorMap<K, V> Class
The map of a key to the Reflector<T> object.
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
- Implements
Constructors
Reflector |
Initializes a new instance of the ReflectorMap<K, V> class. |
Properties
Comparer | (Inherited from Dictionary<TKey, TValue>) |
Count | (Inherited from Dictionary<TKey, TValue>) |
this[TKey] | (Inherited from Dictionary<TKey, TValue>) |
Keys | (Inherited from Dictionary<TKey, TValue>) |
Values | (Inherited from Dictionary<TKey, TValue>) |
Methods
To |
Gets the new Injector that injects a value to the specified field. |
To |
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.
protected ReflectorMap()
Methods Detail
ToInjector(FieldInfo)
Gets the new Injector that injects a value to the specified field.
protected static Injector ToInjector(FieldInfo info)
Parameters
- info
-
Field
Info
The field information associated with the field where the value is injected.
Returns
ToInjector(MethodInfo)
Gets the new Injector that injects a value with the specified method.
protected static Injector ToInjector(MethodInfo info)
Parameters
- info
-
Method
Info
The method information associated with the method which the value is injected with.
Returns
Put(K, Reflector<V>)
Associates the Reflector<T> object with the specified key in this map.
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.