ExpandableObjectConverter.cs 709 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // System.ComponentModel.ExpandableObjectConverter.cs
  3. //
  4. // Authors:
  5. // Tim Coleman ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // Copyright (C) Tim Coleman, 2002
  9. // (C) 2003 Andreas Nahr
  10. //
  11. using System;
  12. namespace System.ComponentModel
  13. {
  14. public class ExpandableObjectConverter : TypeConverter
  15. {
  16. public ExpandableObjectConverter ()
  17. {
  18. }
  19. public override PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context,
  20. object value, Attribute[] attributes)
  21. {
  22. return TypeDescriptor.GetProperties (value, attributes);
  23. }
  24. public override bool GetPropertiesSupported (ITypeDescriptorContext context)
  25. {
  26. return true;
  27. }
  28. }
  29. }