public IRegionAdapter GetMapping(Type controlType)
{
Type currentType = controlType;
while (currentType != null)
{
if (mappings.ContainsKey(currentType))
{
return mappings[currentType];
}
currentType = currentType.BaseType;
}
throw new KeyNotFoundException(String.Format(CultureInfo.CurrentCulture, Resources.NoRegionAdapterException, controlType));
}
}