Hi Experts...I would like to know Dataset is a Value type or Reference type...
Thanks in Advance...
Dataset
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 22, 2012, 6:23 AM EDT
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 Mohiddin113 reputationPosted Mar 22, 2012, 12:50 AM EDT
Shivaraj Poojary69 reputationPosted Mar 22, 2012, 8:47 PM EDT
Meera Mohiddin113 reputationPosted Apr 12, 2013, 3:03 AM EDT