Using designer to fill an ArrayList
-
What I wanna do is to be able to fill an ArrayList from my designer... what I got is this public class WebCustomControl1 : System.Web.UI.WebControls.WebControl { private ArrayList liste = new ArrayList(); . . public ArrayList Liste { set { foreach(string ele in value) { liste.Add(ele); } } get { return liste; } } .... If I fill the Array 'hardcode style' I can see the elements but I can't add new elements in the designer... How terrible is wisdom when it brings no profit to the wise
-
What I wanna do is to be able to fill an ArrayList from my designer... what I got is this public class WebCustomControl1 : System.Web.UI.WebControls.WebControl { private ArrayList liste = new ArrayList(); . . public ArrayList Liste { set { foreach(string ele in value) { liste.Add(ele); } } get { return liste; } } .... If I fill the Array 'hardcode style' I can see the elements but I can't add new elements in the designer... How terrible is wisdom when it brings no profit to the wise