Hi,
I am using asp.net 2005
I would like to create a property for an array. I know that for default types I could do something liket this:
public myClass
{
string myStrField
public string myString
{
set
{
myStrField = value
}
get
{
return myStrField
}
}
how can I create a property for an array. I tried the following but does not work. how can I fix this code.
public myClass
{
string myStrField
public string myString[inx]
{
set
{
myStrField[inx] = value
}
get
{
return myStrField[inx]
}
}
Also, how would I call this property from my code?
thanks,