DesignerSerializationAttribute
-
Does anyone know of any cases where the
baseSerializationType
argument to theDesignerSerializationAttribute
constructor would be something other thanCodeDomSerializer
? 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 :().
-
Does anyone know of any cases where the
baseSerializationType
argument to theDesignerSerializationAttribute
constructor would be something other thanCodeDomSerializer
? 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 :().
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);
-
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);
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 typeCodeDomSerializer
. Now if only I can figure out what all of the serivces thatDocumentDesigner
creates do (the inheritance ones,InheritanceUI
andIInheritanceService
, have got me befuddled, an idea?).