Should allow any IComponent in CompositeContainer

Topics: CAB & Smart Client Software Factory
Aug 20, 2005 at 11:59 AM
originally posted by: IDisposable

In ComponentModel.CompositeContainer, the method RenameItem is being too picky on line 349

internal string RenameItem(object item, string newName)
string validName = GetValidItemName(item, newName);
string existingName = null;

IComponent component = item as Component;
if (component != null)

The line should be doing " as IComponent", right?