[Solved] How to change the order properties are serialized in C#
You can order them by using Order on DataMember like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace Mvm.SATWeb.Domain { [Serializable, DataContract] public class puntoDeAtencion { public puntoDeAtencion() { } [DataMember(Order = 0)] public string codigoPuntoAtencion { get; set; } [DataMember(Order = 1)] public decimal montoIngreso { get; set; } [DataMember(Order … Read more