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?"
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 DataTable and DataSet. As you can see, they are both declared as classes.
You can use the Type.IsValueType method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With