private void EnsureComponentName(ComponentModel model) { if (model.ComponentName != null) { return; } if (name != null) { model.ComponentName = name; return; } if (model.Implementation == typeof(LateBoundComponent)) { model.ComponentName = new ComponentName("Late bound " + FirstService(model).FullName, false); return; } model.ComponentName = ComponentName.DefaultFor(model.Implementation); }