ComponentConverter.cs 719 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // System.ComponentModel.ComponentConverter.cs
  3. //
  4. // Authors:
  5. // Martin Willemoes Hansen ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) 2003 Martin Willemoes Hansen
  9. // (C) 2003 Andreas Nahr
  10. //
  11. namespace System.ComponentModel
  12. {
  13. public class ComponentConverter : ReferenceConverter
  14. {
  15. public ComponentConverter (Type type) : base (type)
  16. {
  17. }
  18. public override PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context,
  19. object value,
  20. Attribute[] attributes)
  21. {
  22. return TypeDescriptor.GetProperties (value, attributes);
  23. }
  24. public override bool GetPropertiesSupported (ITypeDescriptorContext context)
  25. {
  26. return true;
  27. }
  28. }
  29. }