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. Visual Basic
  4. Oppinions of serialization

Oppinions of serialization

Scheduled Pinned Locked Moved Visual Basic
csharpdebuggingxmljsontutorial
1 Posts 1 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.
  • C Offline
    C Offline
    cnurse
    wrote on last edited by
    #1

    I am just beginning serialization on .NET, having dealt with it many times before with other systems. I have been told serialization using the XML serializer is simple, and the documentation makes it appear so. But, do I have to make all my properties public? I create accessors for all properties, as its easier to debug things that way, and some of my properties are read-only. I can't go making my internal member variables public, that would be crazy, so what do you do about it? (By the way, if you don't think it is crazy to make your member variables public, then how would you do range checking and protect yourself against corrupted data on de-serialization?) I'm about to start writing my own serialization code for each class, so a quick guide would be really appreciated. I don't care if its XML or binary format, I guess there's really not much difference from a coding point of view anyway. Many thanks, and a Happy New Year to all. Nursey

    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