AttributeReflectorMap Class
The map of an attribute name to the Reflector<T> object that dispatches a string value to an instance.
C#
public sealed class AttributeReflectorMap : ReflectorMap<XmlQualifiedName, string>
- Inheritance
-
Attribute
Reflector Map
- Implements
-
IDictionary<Xml
Qualified , Reflector<string>> ICollection<KeyName Value <XmlPair Qualified , Reflector<string>>> IReadName Only <XmlDictionary Qualified , Reflector<string>> IReadName Only <KeyCollection Value <XmlPair Qualified , Reflector<string>>> IEnumerable<KeyName Value <XmlPair Qualified , Reflector<string>>> IDictionary ICollection IEnumerableName
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 an attribute name to the object. |
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 an attribute name to the object.
C#
public static IReadOnlyDictionary<XmlQualifiedName, Reflector<string>> Of(Type clazz)
Parameters
- clazz
- Type
The class that has fields annotated with ForAttributeAttribute and/or methods annotated with FromAttributeAttribute.
Returns
A new unmodifiable map. Each key in the map is the attribute name
specified with the argument of FromAttributeAttribute
or ForAttributeAttribute. The value associated with
the key is the Reflector<T> object that dispatches
the attribute value to the instance of clazz
class.