bug with sending null elements of DataSet[] ?
- From: "Moe Sisko" <null>
- Date: Thu, 9 Oct 2008 17:02:47 +1000
Using dotnet : 2.0.50727.1433
To reproduce problem :
On server side :
==
[WebMethod]
public void SendDataSetArray(DataSet[] ds)
{
string str = "ds[0] is null ? : " + (ds[0] == null).ToString(); //
XXX
}
==
On client side, call webmethod like this :
==
DataSet[] ds = new DataSet[1];
ds[0] = null;
ws.SendDataSetArray(ds);
==
where : ws is an instance of the web proxy object.
So, on server side, I expected to see a DataSet array with one element,
where that element contains null.
However, I'm seeing a DataSet array with one element, where that element is
an empty DataSet (non-null !) which contains zero DataTables.
i.e. str at line XXX gets set to : "ds[0] is null ? : False"
Does this look like a bug, or am I missing something ?
TIA
.
- Follow-Ups:
- Re: bug with sending null elements of DataSet[] ?
- From: John Saunders
- Re: bug with sending null elements of DataSet[] ?
- Prev by Date: RE: User Authentication
- Next by Date: Displaying an ActiveX
- Previous by thread: Return dataset in my webservice with schema
- Next by thread: Re: bug with sending null elements of DataSet[] ?
- Index(es):
Relevant Pages
|