public void Dispose(object component) {
if (component is IComponent) {
IDictionaryService ds = (IDictionaryService)GetService((IComponent)component, typeof(IDictionaryService));
if (ds != null) {
ds.SetValue(typeof(AttributeCollection), null);
ds.SetValue(typeof(EventDescriptorCollection), null);
ds.SetValue(typeof(PropertyStash), null);
}
}
}