public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType,
                                                                object instance)
        {
            ICustomTypeDescriptor defaultDescriptor = base.GetTypeDescriptor(objectType, instance);

            if (instance != null && instance is ICollection)
            {
                defaultDescriptor = new CollectionPropertyCustomTypeDescriptor(defaultDescriptor, instance as ICollection);
            }

            return(defaultDescriptor);
        }
		public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType,
																object instance)
		{
			ICustomTypeDescriptor defaultDescriptor = base.GetTypeDescriptor(objectType, instance);

			if (instance != null && instance is ICollection)
			{
				defaultDescriptor = new CollectionPropertyCustomTypeDescriptor(defaultDescriptor, instance as ICollection);
			}

			return defaultDescriptor;
		}