StateServer and Serialization

G

Guest

Hi,

I am currently migration my session state from InProcess to StateServer.
I notice that the object that i want to put in the session must be
serializable.
What about the objects like DataTable and Hashtable, how can i keep than
into the session, i don't think they are serializable. What if i am create a
collect object and make it serializable, does the object in this collection
object must be serializable too?
 
B

bruce barker \(sqlwork.com\)

for an object to be serializable, every property must be serializable. if
its a collection, then all objects in the collection need to be
serializable, otherwise would good would serializing a collection out and
restoring it if it did not contain the same objects.

a hashtable can be serialized, it it only contains serializable objects.
DataTables are also serializable. almost all components (objects that
implement Dispose), are not serializable.

-- bruce (sqlwork.com)
 
G

Guest

Hi Bruce,

Thanks for the reply.
If datatable is serializable and the objects inside the serializable object
must be serialized, what would happned to DataRow then? DataTable contains
the collections of DataRows and i notice that DataRow is not serializable

Thanks
Coco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top