DataBindingCollectionConverter.cs 635 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // System.Web.UI.Design.DataBindingCollectionConverter
  3. //
  4. // Authors:
  5. // Gert Driesen ([email protected])
  6. //
  7. // (C) 2004 Novell
  8. //
  9. using System.ComponentModel;
  10. using System.Globalization;
  11. namespace System.Web.UI.Design
  12. {
  13. public class DataBindingCollectionConverter : TypeConverter
  14. {
  15. public DataBindingCollectionConverter ()
  16. {
  17. }
  18. public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
  19. {
  20. if (destinationType == typeof(string))
  21. return string.Empty;
  22. return base.ConvertTo (context, culture, value, destinationType);
  23. }
  24. }
  25. }