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 2 1799
public int [] Diagnosis(DataSet assessmentData) {}
should fix it for you
Cheers,
Greg Young
MVP - C# http://codebetter.com/blogs/gregyoung
"Khurram" <kn*****@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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
Thank you greg, worked like a charm
Khurram
Greg Young wrote:
public int [] Diagnosis(DataSet assessmentData) {}
should fix it for you
Cheers,
Greg Young
MVP - C# http://codebetter.com/blogs/gregyoung
"Khurram" <kn*****@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jeffrey Silverman |
last post by:
Hi, all. I have a linked list. I need an algorithm to create a tree
structure from that list.
Basically, I want to turn this:
$list = array(
array( 'id' => 'A', 'parent_id' => null, 'value'...
|
by: ron |
last post by:
Hi,
I have class object that i serialize using the
System.Xml.Serialization class.
Intermittently the object is not getting serialized
correctly, using System.Xml.Serialization classes....
|
by: John Grandy |
last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled
with instances of a custom class.
The custom class is defined in a Class Library that is included in the
web-service...
|
by: ctiggerf |
last post by:
I was hopeing someone could help me out here. Been stumped on this
one all day.
This function
1. Checks uploaded files.
2. Creates two resized images from each (a full size, and a...
|
by: Buddy Home |
last post by:
Hello,
I'm trying to upload a file programatically and occasionally I get the
following error message.
Unable to write data to the transport connection: An established connection
was aborted...
|
by: Jeremy Chapman |
last post by:
I've writtin a very simple web service in axis which returns an array of
classes.
I consume it in a .net app. When receiving the response, my .net app
generates an error "Cannot assign object...
|
by: shahiz |
last post by:
This the error i get when i try to run my program
Error: Unable to realize com.sun.media.amovie.AMController@18b81e3
Basically i have a mediapanel class that initialize and play the media as...
|
by: Ty |
last post by:
Hello all,
I am creating a web site with Visual Stuido 2008. I am trying to use
a java script file to create a busybox for login from this page
http://blogs.crsw.com/mark/articles/642.aspx.
I...
|
by: Dormilich |
last post by:
Hi,
I'm testing my classes for a web page and I stumble upon an error I don't have a clue what it means:
Error:
Fatal error: Can't use method return value in write context in "output.php" on...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |