|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Arrays as parameters
Hi Steve, you could do this:
private String[] strings = new String[10]; public String[] Array { get { return strings; } set { strings = value; } } But, this would allow: sc.Array = new String[666]; as well as: sc.Array[0] = "Zero"; If you don't want external client code to modify the Someclass.strings member, simply don't offer a getter on the Array property. Cheers -- Peter |
![]() |
| Viewing: Web Development Archives > Mailing Lists > .Net > Arrays as parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|