TableRowsCollectionEditor.cs 901 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Namespace: System.Web.UI.Design.WebControls
  3. * Class: TableRowsCollectionEditor
  4. *
  5. * Author: Gaurav Vaish
  6. * Maintainer: mastergaurav AT users DOT sf DOT net
  7. *
  8. * (C) Gaurav Vaish (2002)
  9. */
  10. using System;
  11. using System.ComponentModel.Design;
  12. using System.Reflection;
  13. namespace System.Web.UI.Design.WebControls
  14. {
  15. public class TableRowsCollectionEditor : CollectionEditor
  16. {
  17. public TableRowsCollectionEditor(Type type) : base(type)
  18. {
  19. }
  20. protected override bool CanSelectMultipleInstances()
  21. {
  22. return false;
  23. }
  24. protected override object CreateInstance(Type itemType)
  25. {
  26. return Activator.CreateInstance(itemType,
  27. BindingFlags.CreateInstance |
  28. BindingFlags.Instance |
  29. BindingFlags.Public,
  30. null, null, null);
  31. }
  32. }
  33. }