|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Array Property problem
Hi
I have the following code: public class Data_Type { private string m_Data_Type; private string[] m_Data = new string[10]; public string Data(int iIndex) { get { return this.m_Data[index]; } set { this.m_Data[index] = value; } } public string Data_type { get { return this.m_Data_Type; } set { this.m_Data_Type = value; } } I get an error from the compiler (; is missing in the get and set of Data property) why? All I want is to have an array that I can retrieve values from out side the class. Please advise thanks |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Array Property problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|