Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: in C#.net Pin
Pete O'Hanlon13-Aug-12 3:14
mvePete O'Hanlon13-Aug-12 3:14 
GeneralRe: in C#.net Pin
Joan M13-Aug-12 3:13
professionalJoan M13-Aug-12 3:13 
Questionusing Same Shortcut keys on Different Tabs of a form Pin
Why so Serious13-Aug-12 2:48
Why so Serious13-Aug-12 2:48 
AnswerRe: using Same Shortcut keys on Different Tabs of a form Pin
Shameel13-Aug-12 4:29
professionalShameel13-Aug-12 4:29 
AnswerRe: using Same Shortcut keys on Different Tabs of a form Pin
Liam Cairns Kelly13-Aug-12 9:30
Liam Cairns Kelly13-Aug-12 9:30 
Questionread and org data in c# Pin
Xarzu12-Aug-12 23:42
Xarzu12-Aug-12 23:42 
AnswerRe: read and org data in c# Pin
Eddy Vluggen13-Aug-12 0:33
professionalEddy Vluggen13-Aug-12 0:33 
QuestionOverriding the DefaultValueAttribute of an inherited property Pin
Bernhard Hiller12-Aug-12 20:51
Bernhard Hiller12-Aug-12 20:51 
AnswerRe: Overriding the DefaultValueAttribute of an inherited property Pin
DaveyM6913-Aug-12 0:19
professionalDaveyM6913-Aug-12 0:19 
GeneralRe: Overriding the DefaultValueAttribute of an inherited property Pin
Bernhard Hiller13-Aug-12 1:01
Bernhard Hiller13-Aug-12 1:01 
GeneralRe: Overriding the DefaultValueAttribute of an inherited property Pin
DaveyM6913-Aug-12 1:27
professionalDaveyM6913-Aug-12 1:27 
QuestionA simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 1:41
Prahlad Yeri12-Aug-12 1:41 
AnswerRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 4:17
professionalRichard Andrew x6412-Aug-12 4:17 
GeneralRRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:07
Prahlad Yeri12-Aug-12 5:07 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:25
professionalRichard Andrew x6412-Aug-12 5:25 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:31
Prahlad Yeri12-Aug-12 5:31 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:36
professionalRichard Andrew x6412-Aug-12 5:36 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 6:18
Prahlad Yeri12-Aug-12 6:18 
QuestionTracking system Pin
kipchirchir11-Aug-12 20:52
kipchirchir11-Aug-12 20:52 
AnswerRe: Tracking system Pin
OriginalGriff11-Aug-12 21:17
mveOriginalGriff11-Aug-12 21:17 
AnswerRe: Tracking system Pin
Richard MacCutchan11-Aug-12 21:46
mveRichard MacCutchan11-Aug-12 21:46 
QuestionXDocument.Save() reversing attribute order Pin
Nukeman3311-Aug-12 2:03
Nukeman3311-Aug-12 2:03 
If I do something like this

XElement root = new XElement("Root",
new XAttribute("Att1", "a"),
new XAttribute("Att2", "b"),
new XAttribute("Att3", "c"));
XDocument document = new XDocument(root);
document.Save("file.xml");

Instead of it writing

Root Att1="a" Att2="b" Att3="c"/

it writes Root Att3="c" Att2="b" Att1="a"/

Even in debugging mode when I look at the XML contents of document it appears to be in the proper order, but when it writes to file it reverses them. Can anyone tell me why it is doing this?
QuestionRe: XDocument.Save() reversing attribute order Pin
Eddy Vluggen11-Aug-12 2:22
professionalEddy Vluggen11-Aug-12 2:22 
AnswerRe: XDocument.Save() reversing attribute order Pin
Dave Kreskowiak11-Aug-12 4:13
mveDave Kreskowiak11-Aug-12 4:13 
AnswerRe: XDocument.Save() reversing attribute order Pin
jschell11-Aug-12 7:35
jschell11-Aug-12 7:35 

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.