Find Jobs
Hire Freelancers

C# Serialization Help

$30-100 USD

Closed
Posted over 21 years ago

$30-100 USD

Paid on delivery
This is a simple project. I need to be able to serialize out an object graph. This object graph really has nothing special about it besides: - it has delegates in it (which I do not want to serialize) - it has a couple of heterogenous containers in it. - there is the possibility of recursion. - i want it to behave nicely when new versions and data members come later (without writing a custom serializer for each subclass) What I am looking for is for someone to take the code (attached) and get the 2 serialization methods in the unit tests ([login to view URL]) working. I really need this done soon, so speed is of the essence. I am not against using custom serialization (even though I do not know why I would need to in a simple case like this) as long as that could be done only in the base class (ie, subclasses would not have to implement this) A knowledge of NUnit (easy) would help you do this quicker. (nunit getting started pdf is included) Specifically, get the two broken unit tests to work. and make sure hookUpInitialListeners() method in DefaultComponentModel is called after deserialization. Component code is in [login to view URL] and [login to view URL] (test components) If there are bugs in your code, I am going to expect you to help get them fixed. Happy bidding. Attached is the code . . .. // create model to serialize DefaultComponentModel model = new DefaultComponentModel(); StartComponent sc = new StartComponent(); ValidAdjustComponent ec = new ValidAdjustComponent(); ThreePathComponent oc = new ThreePathComponent(); [login to view URL] = "test string for serialization"; [login to view URL](sc); [login to view URL](ec); [login to view URL](oc); ComponentLink link = new ComponentLink(sc, ec); [login to view URL](link); link = new ComponentLink(ec, oc); [login to view URL](link); // write it out string fileName = "[login to view URL]"; Stream stream = new FileStream(fileName, [login to view URL], [login to view URL], [login to view URL]); [login to view URL](stream, model); [login to view URL](); // read it back in stream = new FileStream(fileName, [login to view URL], [login to view URL], [login to view URL]); DefaultComponentModel model2 = (DefaultComponentModel) [login to view URL](stream); [login to view URL](); ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform XP ## Deadline information I will review the code to make sure it meets conditions before acceptance.
Project ID: 2886676

About the project

1 proposal
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $43 USD for this job
User Avatar
See private message.
$42.50 USD in 14 days
4.1 (3 reviews)
2.1
2.1

About the client

Flag of UNITED STATES
United States
5.0
392
Payment method verified
Member since Jun 11, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.