|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Arrays as parameters
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 class Someclass{ private string[] myarray; public string[] MyArray { get { return myarray; } set{ myarray= value; } } } |
![]() |
| Viewing: Web Development Archives > Mailing Lists > .Net > Arrays as parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|