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. .NET (Core and Framework)
  4. how to serialize .net built in object?

how to serialize .net built in object?

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharphelptutorial
3 Posts 3 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.
  • J Offline
    J Offline
    JackChen626
    wrote on last edited by
    #1

    I use .net remoting to transfer my own object to remote computer. But my own object contains some .net built in object like Font, Brush...etc. These built in object seems can't serialize itself, so I got an exception, how can I do to slove this problem? thanks in advance.

    N S 2 Replies Last reply
    0
    • J JackChen626

      I use .net remoting to transfer my own object to remote computer. But my own object contains some .net built in object like Font, Brush...etc. These built in object seems can't serialize itself, so I got an exception, how can I do to slove this problem? thanks in advance.

      N Offline
      N Offline
      Nnamdi Onyeyiri
      wrote on last edited by
      #2

      Create another object that contains information on the brushes and fonts, and serialize that.


      website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

      1 Reply Last reply
      0
      • J JackChen626

        I use .net remoting to transfer my own object to remote computer. But my own object contains some .net built in object like Font, Brush...etc. These built in object seems can't serialize itself, so I got an exception, how can I do to slove this problem? thanks in advance.

        S Offline
        S Offline
        sreejith ss nair
        wrote on last edited by
        #3

        Please check whether you gave proper serializable attribute for your custom class. Otherwise please mention the exception that you got when you tried this. Sreejith Nair [ My Articles ]

        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