Hi,
dnahelix wrote:
public string LabValues { get { return m_labValues; } set { m_labValues = value; } }
If you want the array m_labValues as a property, you must include the [] in its type: public string[] LabValues {...} That way your statements patient.LabValues[0]="B.P is 120,80"; patient.LabValues[1]="Blood Sugar is 160"; are OK If there is only one string array to expose (make publicly available) you could work with an indexor, as others already told you; but for more than one array, that becomes difficult since an indexor always uses the class name (in the ouside world) and this (within the class intself), so the only way to differentiate is by the type of the index variable, which does not have to be an int at all (it could be a string, or whatever you like), but would be an int if it really stands for an index in an array. :)
Luc Pattyn [My Articles] [Forum Guidelines]