in src/main/csharp/Util/IntrospectionSupport.cs [114:137]
private static void AddToNameMap(StringDictionary nameMap,
MemberInfo memberInfo)
{
// Add member name mapped to itself
nameMap.Add(memberInfo.Name, memberInfo.Name);
// For each UriAttribute custom attribute
foreach(Attribute attr in memberInfo.GetCustomAttributes(
typeof(UriAttributeAttribute), true))
{
// For each URI attribute key
foreach(string key in
((UriAttributeAttribute)attr).AttributeKeys)
{
// Index property name by URI attribute key
if(!nameMap.ContainsKey(key))
{
nameMap.Add(key, memberInfo.Name);
}
}
}
return;
}