|
-
Mar 12th, 2006, 03:16 PM
#1
Thread Starter
PowerPoster
serialize ALL objects?
This may sound daft for which I am sorry.
I have an array
I have objects (x amount) stored in the array, all of the same type.
I want to serialize all the objects in the array. How can I do this in one go without doing a serialize on each object in the array? is this possible?
-
Mar 13th, 2006, 02:51 PM
#2
Fanatic Member
Re: serialize ALL objects?
I'd say put the array in a class and declare the class as serializable. If the array contains your own defined class objects this class object should also be declared as serializable.
ps: Don't ask me for a sample, I'm still a VB.NET developer attemptng to learn C#
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Mar 13th, 2006, 05:25 PM
#3
Thread Starter
PowerPoster
Re: serialize ALL objects?
lol ill give this a shot
thanks
-
Mar 22nd, 2006, 02:39 PM
#4
Re: serialize ALL objects?
Just serialise the array, the array will deal with everything. I assume you are using Binary serialization and not XML.
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|