string array property
-
I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.
-
I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.
Hello
Mark Anthony Sabado wrote:
how to create a string array property
private string[] _myarray;
public string[] MyStringArray
{
get { return _myarray; }
set { _myarray = value; }
}Was that what you were looking for?
Regards:rose:
-
Hello
Mark Anthony Sabado wrote:
how to create a string array property
private string[] _myarray;
public string[] MyStringArray
{
get { return _myarray; }
set { _myarray = value; }
}Was that what you were looking for?
Regards:rose:
Yes, Thanks again.
-
I need your help guys. Thanks in advance. Can you please teach me on how to create a string array property or give a snippet/sample code. I need this property to have a string editor for my custom web control.
Hello, Maybe 'System.Collections.Specialized.StringCollection' can help you somehow, to make your code more dynamic.
private System.Collections.Specialized.StringCollection _mystringcollection = new System.Collections.Specialized.StringCollection;
public System.Collections.Specialized.StringCollection MyStringCollection
{
get
{
return _mystringcollection;
}
set
{
_mystringcollection = value;
}
}All the best, Martin