in src/DeloitteDigital.Atlas/Mapping/RenderingParameterMapping/RenderingParameterMapAttribute.cs [21:38]
public IPropertyMeta CreatePropertyMeta<TModel>(PropertyInfo property, IDictionary<string, Type> propertyMetaDictionary)
{
if (!propertyMetaDictionary.ContainsKey(property.PropertyType.ToString()))
{
return default(IPropertyMeta);
}
var propertyMeta = Activator.CreateInstance(propertyMetaDictionary[property.PropertyType.ToString()]) as IPropertyMeta;
if (propertyMeta == null)
{
return default(IPropertyMeta);
}
propertyMeta.PropertyName = property.Name;
propertyMeta.MappingName = RenderingParameterName ?? property.Name;
propertyMeta.Mapper = new RenderingParameterMapper();
return propertyMeta;
}