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