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. How to create your own Serializer [modified]

How to create your own Serializer [modified]

Scheduled Pinned Locked Moved C#
cryptographytutorialquestion
5 Posts 2 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.
  • T Offline
    T Offline
    teejayem
    wrote on last edited by
    #1

    Is there a way that i can create a Serializer Similiar to the XmlSerializer. the data that i am working with is kinda like a hash file. I would like to be able to stick some attributes to my objects/properties and serialize the hashed data to workable objects and back into formatted data. Could someone point me in the right direction? Thanks!

    Don't be overcome by evil, but overcome evil with good

    modified on Wednesday, December 26, 2007 10:51:03 AM

    N 1 Reply Last reply
    0
    • T teejayem

      Is there a way that i can create a Serializer Similiar to the XmlSerializer. the data that i am working with is kinda like a hash file. I would like to be able to stick some attributes to my objects/properties and serialize the hashed data to workable objects and back into formatted data. Could someone point me in the right direction? Thanks!

      Don't be overcome by evil, but overcome evil with good

      modified on Wednesday, December 26, 2007 10:51:03 AM

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      You can implement the ISerializable interface on your class and handle the serialization events


      only two letters away from being an asset

      T 1 Reply Last reply
      0
      • N Not Active

        You can implement the ISerializable interface on your class and handle the serialization events


        only two letters away from being an asset

        T Offline
        T Offline
        teejayem
        wrote on last edited by
        #3

        Hey Mark, Thanks for your reply. Looking at the ISerializable i don't think i am able to use this. The kind of data that i am working with is a pipe delemited file (ex Adam|1550 Robin St. Tampa, FL). What i'd like to do is take this string and add it to a "Customer Object" so i can just manipulate the data using the properties. Then when i am done w/ i'll then be able to serialize it in the original format. ISerializable Interface uses the SerializtionInfo which gets/adds data by keys and i can't store the keys in this data.

        Don't be overcome by evil, but overcome evil with good

        N 1 Reply Last reply
        0
        • T teejayem

          Hey Mark, Thanks for your reply. Looking at the ISerializable i don't think i am able to use this. The kind of data that i am working with is a pipe delemited file (ex Adam|1550 Robin St. Tampa, FL). What i'd like to do is take this string and add it to a "Customer Object" so i can just manipulate the data using the properties. Then when i am done w/ i'll then be able to serialize it in the original format. ISerializable Interface uses the SerializtionInfo which gets/adds data by keys and i can't store the keys in this data.

          Don't be overcome by evil, but overcome evil with good

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Unless I'm missing something you're not saying. The file is already the serialized representation of your objects.


          only two letters away from being an asset

          T 1 Reply Last reply
          0
          • N Not Active

            Unless I'm missing something you're not saying. The file is already the serialized representation of your objects.


            only two letters away from being an asset

            T Offline
            T Offline
            teejayem
            wrote on last edited by
            #5

            I don't know how to explain it man. I'll try and figure something out. Thank you for your time.

            Don't be overcome by evil, but overcome evil with good

            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