Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Saving objects with Cross-reference

Saving objects with Cross-reference

Scheduled Pinned Locked Moved C#
csharphelplinqsalesjson
24 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    Does the original Java-generated have it's loan-list in the XML?

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

    L Offline
    L Offline
    larsp777
    wrote on last edited by
    #21

    No, I don't think I did it in XML. I saved the objects in a binary format.

    L 1 Reply Last reply
    0
    • L larsp777

      No, I don't think I did it in XML. I saved the objects in a binary format.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #22

      larsp777 wrote:

      No, I don't think I did it in XML. I saved the objects in a binary format.

      :) If you save a collection using the binary-formatter, then it'll also save the pointers. If you use XML, you'll have to save the relations yourself, or keep a list.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      L 1 Reply Last reply
      0
      • L Lost User

        larsp777 wrote:

        No, I don't think I did it in XML. I saved the objects in a binary format.

        :) If you save a collection using the binary-formatter, then it'll also save the pointers. If you use XML, you'll have to save the relations yourself, or keep a list.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        L Offline
        L Offline
        larsp777
        wrote on last edited by
        #23

        So...what do you suggest I do...

        L 1 Reply Last reply
        0
        • L larsp777

          So...what do you suggest I do...

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #24

          Use the binaryformatter[^] to store it as binary data. It's that, or doing some extra work to have it correctly in XML.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups