K
Khurram
Hi,
Get the following error when trying to create a method that returns a
one-dimentional array.
You must implement a default accessor on System.Array because it
inherits from ICollection.
Below is how I am writing the method.
public Array Diagnosis(DataSet assessmentData)
{
//Do some logic work with assessmentData DataSet
//An array of SNOMED CT coded possible diagnosis results
int[] diagnosis = { 74400008, 162031009, 7093002, 76581006,
75694006};
return diagnosis;
}
New to both Arrays and Csharp so any help will be greatly appreciated.
I thought it was a namespace problem but I have "using System;"
namespace added.
Thank you kindly
Khurram
Get the following error when trying to create a method that returns a
one-dimentional array.
You must implement a default accessor on System.Array because it
inherits from ICollection.
Below is how I am writing the method.
public Array Diagnosis(DataSet assessmentData)
{
//Do some logic work with assessmentData DataSet
//An array of SNOMED CT coded possible diagnosis results
int[] diagnosis = { 74400008, 162031009, 7093002, 76581006,
75694006};
return diagnosis;
}
New to both Arrays and Csharp so any help will be greatly appreciated.
I thought it was a namespace problem but I have "using System;"
namespace added.
Thank you kindly
Khurram