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

.NET (Core and Framework)

 
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:

GeneralRe: Specifying the xml deserialization order Pin
Mehdi_S19-Jan-10 5:04
Mehdi_S19-Jan-10 5:04 
GeneralRe: Specifying the xml deserialization order Pin
Eddy Vluggen19-Jan-10 9:27
professionalEddy Vluggen19-Jan-10 9:27 
QuestionLoad methods from dll dynamically in application Pin
pdnet18-Jan-10 18:21
pdnet18-Jan-10 18:21 
AnswerRe: Load methods from dll dynamically in application Pin
Estys18-Jan-10 23:56
Estys18-Jan-10 23:56 
GeneralRe: Load methods from dll dynamically in application Pin
pdnet19-Jan-10 2:20
pdnet19-Jan-10 2:20 
GeneralRe: Load methods from dll dynamically in application [modified] Pin
Estys19-Jan-10 2:56
Estys19-Jan-10 2:56 
QuestionAddon framework Pin
Adriaan Davel17-Jan-10 23:38
Adriaan Davel17-Jan-10 23:38 
AnswerRe: Addon framework Pin
Not Active18-Jan-10 2:01
mentorNot Active18-Jan-10 2:01 
GeneralRe: Addon framework Pin
Adriaan Davel18-Jan-10 3:02
Adriaan Davel18-Jan-10 3:02 
GeneralRe: Addon framework Pin
Not Active18-Jan-10 5:36
mentorNot Active18-Jan-10 5:36 
AnswerRe: Addon framework Pin
Pete O'Hanlon18-Jan-10 3:06
mvePete O'Hanlon18-Jan-10 3:06 
GeneralRe: Addon framework Pin
Adriaan Davel18-Jan-10 19:24
Adriaan Davel18-Jan-10 19:24 
GeneralRe: Addon framework Pin
Pete O'Hanlon18-Jan-10 21:48
mvePete O'Hanlon18-Jan-10 21:48 
Questionproblem in vb.net coding Pin
emma watson16-Jan-10 7:33
emma watson16-Jan-10 7:33 
AnswerRe: problem in vb.net coding Pin
Eddy Vluggen16-Jan-10 8:56
professionalEddy Vluggen16-Jan-10 8:56 
AnswerRe: problem in vb.net coding Pin
elizas18-Jan-10 3:18
elizas18-Jan-10 3:18 
Question3D Software Pin
ashwath197914-Jan-10 23:45
ashwath197914-Jan-10 23:45 

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.