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. DesignerSerializationAttribute

DesignerSerializationAttribute

Scheduled Pinned Locked Moved C#
csharpvisual-studiographicsdesigngame-dev
3 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.
  • K Offline
    K Offline
    Kastro
    wrote on last edited by
    #1

    Does anyone know of any cases where the baseSerializationType argument to the DesignerSerializationAttribute constructor would be something other than CodeDomSerializer? For instance anything other than the normal:

    [DesignerSerializerAttribute(typeof(Design.ControlCodeDomSerializer), typeof(CodeDomSerializer))]
    class Control {
    ...

    Does the Visual Studio design framework allow for other types of serialization? Is that how resources are serialized into .resx files? I'm curious and it's really just to help me better understand and utilize the designer capabilities of .NET (I'm dabbling on a managed DirectX engine which includes design-time support for 2D-GUI overlays). Thanks for any info or references (I failed to find any in my searches :().

    L 1 Reply Last reply
    0
    • K Kastro

      Does anyone know of any cases where the baseSerializationType argument to the DesignerSerializationAttribute constructor would be something other than CodeDomSerializer? For instance anything other than the normal:

      [DesignerSerializerAttribute(typeof(Design.ControlCodeDomSerializer), typeof(CodeDomSerializer))]
      class Control {
      ...

      Does the Visual Studio design framework allow for other types of serialization? Is that how resources are serialized into .resx files? I'm curious and it's really just to help me better understand and utilize the designer capabilities of .NET (I'm dabbling on a managed DirectX engine which includes design-time support for 2D-GUI overlays). Thanks for any info or references (I failed to find any in my searches :().

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Best is to look at the VS.NET classes with Reflector. Quite handy at times, nice to "steal" type convertors/designers from :) leppie::AllocCPArticle(Generic DFA State Machine for .NET);

      K 1 Reply Last reply
      0
      • L leppie

        Best is to look at the VS.NET classes with Reflector. Quite handy at times, nice to "steal" type convertors/designers from :) leppie::AllocCPArticle(Generic DFA State Machine for .NET);

        K Offline
        K Offline
        Kastro
        wrote on last edited by
        #3

        Thanks for the tip. I was using ILDASM which was quite a bit slower than what I was able to do with Reflector. It was pretty easy to find the code in the VS assemblies that called the serializers. Turns out it only calls Serialize on objects of type CodeDomSerializer. Now if only I can figure out what all of the serivces that DocumentDesigner creates do (the inheritance ones, InheritanceUI and IInheritanceService, have got me befuddled, an idea?).

        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