[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Editor(typeof(CollectionEditor), typeof(System.Drawing.Design.UITypeEditor))]
public List<
Column>
Columns {
get { return
m_kolekcija; }
set {
m_kolekcija = value; }
}
I think this will be sucess...
And this is my code...you can refer...
| usingSystem; |
| usingSystem.Collections.Generic; |
| usingSystem.Text; |
| usingSystem.Collections; |
| usingSystem.Windows.Forms; |
| usingSystem.Drawing; |
| usingSystem.ComponentModel; |
| usingSystem.ComponentModel.Design; |
| usingMylib; |
|
| namespaceMyLib |
| { |
| publicpartialclass动态?Component |
| { |
| public动?) |
| { |
| InitializeComponent(); |
| } |
|
| public动?IContainercontainer) |
| { |
| container.Add(this); |
| InitializeComponent(); |
| } |
|
| privateList<动态类>_数组=newList<动态类>(); |
| [Category("BusinessObjectControl")] |
| [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] |
| [Editor(typeof(CollectionEditor),typeof(System.Drawing.Design.UITypeEditor))] |
| publicList<动态类>数组 |
| { |
| get{return_数组;} |
| set{_数组=value;} |
| } |
| } |
|
| publicclass动态类 |
| { |
| privateint_数值?0; |
| publicint数? |
| { |
| get{return_数?} |
| set{_数值?value;} |
| } |
|
| privatestring_文本=""; |
| publicstring文本 |
| { |
| get{return_文本;} |
| set{_文本=value;} |
| } |
|
| publicoverridestringToString() |
| { |
| return_数?ToString()+"|"+_文本; |
| } |
| } |
| } |
You can change variable to enghlish....