Re: Order of serialization of attributes

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Derek Harmon (loresayer_at_msn.com)
Date: 09/03/04


Date: Thu, 2 Sep 2004 20:55:07 -0400


"Daniel Lidström" <someone@microsoft.com> wrote in message news:12e4487za0tm2$.k210hliorhfg.dlg@40tude.net...
> is there a way to control the order XmlSerializer serializes attributes?

I think you would need to implement IXmlSerializable (i.e., implement
the serialization entirely on your own using XmlWriter) to have this
degree of control over the order of attributes' serialization.

Derek Harmon



Relevant Pages

  • How do you exclude a property from serialization using CodeDomSerializer
    ... You can use NonSerialized to exclude a field from the ... from serialization and a bool property that indicates whether those ... control references have been re-established after deserialization. ... public Control BaseControl { ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Re: the c# return statement
    ... >> start worry about serialization of data over a network, ... > not control the memory in which it resides. ... seconds coming up with examples where switch statements would be useful. ...
    (microsoft.public.dotnet.general)
  • Re: Using Reflection to get a Field Value from Control
    ... I am reflecting on the field text which provides the property Text, ... works when done at the form level but not during serialization. ... > contents of the control, which is why the text field would be blank. ... >>I am writing a simulation program, the main classes inherit from a base ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why Serialization
    ... said that you can store a control in the state it is, but for the array ... control in the state as it is, but you can also use it to sent an object ... in the state it is pver the line without XML serialization. ...
    (microsoft.public.dotnet.general)
  • Re: Using Reflection to get a Field Value from Control
    ... > I am reflecting on the field text which provides the property Text, ... > works when done at the form level but not during serialization. ... >> contents of the control, which is why the text field would be blank. ... >>>I am writing a simulation program, the main classes inherit from a base ...
    (microsoft.public.dotnet.languages.csharp)