Is datatable/dataset is value type of reference type?
But the most important question in my mind is- “how to find whether a type is a value type or reference type?“
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are both reference types.
You can look up the information on MSDN – if they are classes, they are reference types, if structs, value types.
See
DataTableandDataSet. As you can see, they are both declared as classes.