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
Implements

Properties

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 ReflectorMap<K, V>)
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.