jhammer
July 18th, 2005, 04:39 AM
The server object has a public method:
public DataSet GetDataSet()
{
return ds.Copy();
}
When the client needs the server copy of the data, it calls GetDataSet.
My question: Is the Copy needed? The method DataSet.Copy is expensive. I need the client to have a copy of the dataset, but my instincts tell me that the client will get a copy of the dataset anyhow (and not a reference to it).
Am I right?
public DataSet GetDataSet()
{
return ds.Copy();
}
When the client needs the server copy of the data, it calls GetDataSet.
My question: Is the Copy needed? The method DataSet.Copy is expensive. I need the client to have a copy of the dataset, but my instincts tell me that the client will get a copy of the dataset anyhow (and not a reference to it).
Am I right?