ChildReflectorMap Class
The map of a class
object annotated with ForElementAttribute to the Reflector<T> object
that dispatches an object
of the class to an instance.
C#
public sealed class ChildReflectorMap : ReflectorMap<Type, object>
- Inheritance
- Implements
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
Of(Type) |
Returns a new unmodifiable map of a |
Put(K, Reflector<V>) |
Associates the Reflector<T> object with the specified key in this map. (Inherited from Reflector |
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) |
Methods Detail
Of(Type)
Returns a new unmodifiable map of a class
object to the Reflector<T> object.
C#
public static IReadOnlyDictionary<Type, Reflector<object>> Of(Type clazz)
Parameters
- clazz
- Type
The class that has fields annotated with ForChildAttribute and/or methods annotated with FromChildAttribute.
Returns
A new unmodifiable map. Each key in the map is the class
object annotated with ForElementAttribute. The value
associated with the key is the Reflector<T> object
that dispatches the object whose class is the key to the instance
of clazz
class.