Фрагмент кода из класса BLToolkit.Reflection.TypeAccessor
private static readonly Hashtable _descriptors = new Hashtable();
public static ICustomTypeDescriptor GetCustomTypeDescriptor(Type type)
{
ICustomTypeDescriptor descriptor = (ICustomTypeDescriptor)_descriptors[type];
if (descriptor == null)
{
descriptor = new CustomTypeDescriptorImpl(type);
// ????????????????????????????????????????????????????????
// ?? тут не хватает _descriptors.Add(type, descriptor); ??
// ????????????????????????????????????????????????????????
}
return descriptor;
}
ЗЫ: Возможно баян, или я чего-то не понял, сильно не ругайте, если зря побеспокоил.