|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Arrays as parameters
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 |
![]() |
| Viewing: Web Development Archives > Mailing Lists > .Net > Arrays as parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|