private static string GetObjectImplicitKeyPropName (TokenTypeInfo objInfo)
{
if (DictionaryKeyProps.ContainsKey(objInfo.Type))
return DictionaryKeyProps[objInfo.Type];
else {
var attrDictKey = objInfo.Type.GetCustomAttributes<DictionaryKeyPropertyAttribute>().FirstOrDefault();
if (attrDictKey != null)
return attrDictKey.Name;
}
return null;
}