Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm making a mapmaker, and to save the map I just serialize a type Map class holding all my information, and to load it into the mapmaker I just deserialize the file I serialized and load it into an empty class.

 

This works fine, but I'm kind of new to serializing (I used to use VB and saved map as arrays in text files, etc.) and I was wondering on how to save a serialized file lets say from ProjectA, and load it into ProjectB. I've tried deserializing a file serialized from another project, but it gives me an error :confused: .

 

:)

  • Administrators
Posted

One possible way is to put the class into a shared library that both projects reference - this way it should keep consistent on disk structures.

 

An alternative (and personally how I would do it) is look at using XML serialisation - this produces a xml file that isn't dependent on the assembly generating it to read it back in.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...