Hi Experts...I would like to know Dataset is a Value type or Reference type...
Thanks in Advance...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Mar 22, 2012, 10:23 AM
The DataSet is object type and it will have the reference in the hash memory. It is called Reference Type, which will be stored in the Hash memory. It is managed code and runs under the CLR, the garbage collection will be running to clear the reference when this object no longer needed.
When the DataSet is intantiated the object will have the reference in the memory. It belongs to the System.Data namespace.
When you want to release the memory to increase the performance of the application then it can be disposed the object from the hash memory.
DataSet dsEmployees = new DataSet(); //Create the object
dsEmployees.Dispose(); //Release the object from the hash memory.
Hope this will help you to understand about the dataset.
If it is useful then mark it as "Accepted Answer"
Meera MohiddinPosted Apr 12, 2013, 7:03 AM
Shivaraj PoojaryPosted Mar 23, 2012, 12:47 AM
Meera MohiddinPosted Mar 22, 2012, 4:50 AM