Click here to Skip to main content
15,913,055 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: error in filling the dataset Pin
Som Shekhar21-Jan-10 23:36
Som Shekhar21-Jan-10 23:36 
GeneralRe: error in filling the dataset Pin
akosidandan22-Jan-10 1:42
akosidandan22-Jan-10 1:42 
GeneralRe: error in filling the dataset Pin
Som Shekhar22-Jan-10 1:49
Som Shekhar22-Jan-10 1:49 
GeneralRe: error in filling the dataset Pin
akosidandan22-Jan-10 1:51
akosidandan22-Jan-10 1:51 
Question.NET Framework Error Reporting at runtime Pin
fdmaxey21-Jan-10 4:00
fdmaxey21-Jan-10 4:00 
AnswerRe: .NET Framework Error Reporting at runtime Pin
Som Shekhar21-Jan-10 4:06
Som Shekhar21-Jan-10 4:06 
GeneralRe: .NET Framework Error Reporting at runtime Pin
Not Active21-Jan-10 5:39
mentorNot Active21-Jan-10 5:39 
GeneralRe: .NET Framework Error Reporting at runtime Pin
Som Shekhar21-Jan-10 5:51
Som Shekhar21-Jan-10 5:51 
GeneralRe: .NET Framework Error Reporting at runtime Pin
fdmaxey24-Jan-10 5:05
fdmaxey24-Jan-10 5:05 
GeneralRe: .NET Framework Error Reporting at runtime Pin
Som Shekhar24-Jan-10 5:42
Som Shekhar24-Jan-10 5:42 
Questioncommunicating with Mainframe systems using .net architecture Pin
Prabhanand Nagarajan20-Jan-10 22:38
Prabhanand Nagarajan20-Jan-10 22:38 
AnswerRe: communicating with Mainframe systems using .net architecture Pin
Richard MacCutchan20-Jan-10 23:18
mveRichard MacCutchan20-Jan-10 23:18 
GeneralRe: communicating with Mainframe systems using .net architecture Pin
ddecoy21-Jan-10 5:06
ddecoy21-Jan-10 5:06 
QuestionScreenshot with windows service Pin
Stevie20-Jan-10 11:17
Stevie20-Jan-10 11:17 
AnswerRe: Screenshot with windows service Pin
Mark Salsbery20-Jan-10 21:12
Mark Salsbery20-Jan-10 21:12 
QuestionControl Customization via XML Pin
michael_jhons19-Jan-10 21:38
michael_jhons19-Jan-10 21:38 
AnswerRe: Control Customization via XML Pin
Estys20-Jan-10 0:06
Estys20-Jan-10 0:06 
GeneralRe: Control Customization via XML Pin
michael_jhons20-Jan-10 21:04
michael_jhons20-Jan-10 21:04 
GeneralRe: Control Customization via XML Pin
Estys21-Jan-10 0:10
Estys21-Jan-10 0:10 
GeneralRe: Control Customization via XML Pin
michael_jhons21-Jan-10 3:00
michael_jhons21-Jan-10 3:00 
GeneralRe: Control Customization via XML Pin
Estys21-Jan-10 7:37
Estys21-Jan-10 7:37 
GeneralRe: Control Customization via XML Pin
michael_jhons26-Jan-10 8:06
michael_jhons26-Jan-10 8:06 
GeneralRe: Control Customization via XML Pin
michael_jhons27-Jan-10 11:36
michael_jhons27-Jan-10 11:36 
QuestionSpecifying the xml deserialization order Pin
Mehdi_S18-Jan-10 23:32
Mehdi_S18-Jan-10 23:32 
AnswerRe: Specifying the xml deserialization order Pin
Eddy Vluggen19-Jan-10 4:03
professionalEddy Vluggen19-Jan-10 4:03 
Mehdi_S wrote:
How can I specify the xml deserialization order?


By specifying the Order using the XmlElement attribute, similar to this;
public class OrderedClass
{
    private int field1;
    private string field2;
    private string field3;

    [XmlElement(Order = 3)]
    public string Field3
    {
        get { return field3; }
        set { field3 = value; }
    }

    [XmlElement(Order = 1)]
    public int Field1
    {
        get { return field1; }
        set { field1 = value; }
    }

    [XmlElement(Order = 2)]
    public string Field2
    {
        get { return field2; }
        set { field2 = value; }
    }

    public OrderedClass()
    {
        field1 = 1;
        field2 = "String1";
        field3 = "String2";
    }
}

The example is taken from MSDN[^], where you can download a sample application[^].

Good luck Smile | :)

I are Troll Suspicious | :suss:

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.