By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,723 Members | 828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,723 IT Pros & Developers. It's quick & easy.

serialization in .net.very urgent

P: 1
Dear sir;

I want ur Help in serialization.I know serialization.I Know binary,soap and xmlserialization also.But i want ur help in following topics.pls help me as soon as possible.I have search in site but only basics serialization is there.

Topics:
1) serialize a nested object in mutiple files by maintaining the relation on parent level.

ie, let say object1 containts object2 and object2 contains object3 , while serializing the object1, object2 and object3 will be saved 3 different files which is maintained by a service or a program. and when it is deserailizing the object1 it should automatically deserialize the object2 and object3 and for that the service or program should know where it is saved ( you can maintain that attributes on concerned parent object level)
or
class a
{
private class b ;
private class c;
};
in this case class a contain class b and class c, it may contain some other classes. right. so when you are serializing an object of class A you need to serialize the internal object of Class B and Class C. But the question how you will serialize this , and where you will serialize. for the question of how , we can do it any format which is supported by the framework, but for the question of where is little tricky , we can save the information into the same file ( one file ) or we can serialize this into multiple files. if you are serializing this into mutiple files then your program should know in which file you saved it. In this scenario we need a program or class which can control the entire serialization process. The features of the new program will be if you are passing an object for serialization or deserailization it will read / write the data from /to different files. so the files id's to be created autoamtically and managed properly. Another thing the program should be generic program so, it can serialize or deserialize any object which is supporting the serialization. In a generic level you can identify / get the details of the properties through the reflection methods.

2) try to create a separate service which can serialize any object which is implemented serialize attribute , for this probably you need to use reflection also.

3) save an object in normal ascii format through serialization.
From
Nobin
Jan 30 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.