Arrays as parameters

Steve Abaffy <[email protected]> Mon, 16 Jun 2008 14:17:01 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <0e7301c8cfe5$8dfe68e0$a9fb3aa0$@biz>
Hello,

        How does one do the following:

Class Someclass{

        Private string [] myarray;

        Public string [] MyArray {get { return myarray[];} set{myarray[]=
value;}}
}
Correctly? I want to be able to declare this class in my main function and
set the parameters of the myarray as

Someclass Sc = new someclass;
Sc.MyArray[0] = "This is test 1";
Sc.MyArray[1] = "Thisis test 2";
Etc...

Thanks