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

.NET (Core and Framework)

 
AnswerRe: WPF and ValidationRule's Pin
Pete O'Hanlon29-May-09 10:31
mvePete O'Hanlon29-May-09 10:31 
GeneralRe: WPF and ValidationRule's Pin
Gary Wheeler29-May-09 10:47
Gary Wheeler29-May-09 10:47 
GeneralRe: WPF and ValidationRule's Pin
Henry Minute29-May-09 11:27
Henry Minute29-May-09 11:27 
GeneralRe: WPF and ValidationRule's Pin
Gary Wheeler1-Jun-09 0:39
Gary Wheeler1-Jun-09 0:39 
QuestionHOW CAN I POPULATE DATA FROM DATASET FROM LIST COLLECTION ??? Pin
TARAK NATH ROY29-May-09 1:26
TARAK NATH ROY29-May-09 1:26 
AnswerRe: HOW CAN I POPULATE DATA FROM DATASET FROM LIST COLLECTION ??? Pin
Pete O'Hanlon29-May-09 1:42
mvePete O'Hanlon29-May-09 1:42 
QuestionHOW CAN I WRITE XML FROM LIST COLLECTION ??? Pin
TARAK NATH ROY28-May-09 20:42
TARAK NATH ROY28-May-09 20:42 
AnswerRe: HOW CAN I WRITE XML FROM LIST COLLECTION ??? Pin
0x3c028-May-09 21:49
0x3c028-May-09 21:49 
Look into XDocument and LINQ. You could also add the items using a loop. If all else fails, then this piece of C# code should give you the general idea:
using System.Xml.Linq;

   XDocument xDoc = new XDocument(new XElement("root",
            new XElement("key", arcCollection.Key),
            new XElement("values",
                from Point pt in arcCollection.Value
                select new XElement("point",
                    new XElement("x", pt.X),
                    new XElement("y", pt.Y)
                )
            )
        ));

That piece of code iterates through every Point structure in arcCollection.Value, and creates a nice neat XML structure. I didn't have the Point2D structure definition with me, so I used the Point structure instead, but this is still fairly neat. If you need to add properties, then look at the lines which reference pt.X and pt.Y. They form a list, and you simply have to add the properties as XElements like I did. Don't forget to change the definition of pt to a Point2D structure though, otherwise the code probably won't even compile
AnswerRe: HOW CAN I WRITE XML FROM LIST COLLECTION ??? Pin
Tristan Rhodes29-May-09 0:45
Tristan Rhodes29-May-09 0:45 
Questionsocket communication uisng .net [modified] Pin
yrishi28-May-09 20:00
yrishi28-May-09 20:00 
AnswerRe: socket communication uisng .net Pin
Mohd Iliyas Ahmad28-May-09 21:14
Mohd Iliyas Ahmad28-May-09 21:14 
GeneralRe: socket communication uisng .net Pin
yrishi28-May-09 22:34
yrishi28-May-09 22:34 
AnswerRe: socket communication uisng .net Pin
Baran M29-May-09 0:34
Baran M29-May-09 0:34 
GeneralRe: socket communication uisng .net Pin
yrishi29-May-09 2:08
yrishi29-May-09 2:08 
GeneralRe: socket communication uisng .net Pin
Baran M1-Jun-09 19:24
Baran M1-Jun-09 19:24 
GeneralRe: socket communication uisng .net Pin
yrishi1-Jun-09 20:24
yrishi1-Jun-09 20:24 
QuestionChoosing the right .NET development technology, so much choice! Pin
Russtavo28-May-09 1:58
Russtavo28-May-09 1:58 
AnswerRe: Choosing the right .NET development technology, so much choice! Pin
Pete O'Hanlon28-May-09 2:14
mvePete O'Hanlon28-May-09 2:14 
GeneralRe: Choosing the right .NET development technology, so much choice! Pin
Russtavo28-May-09 5:06
Russtavo28-May-09 5:06 
GeneralRe: Choosing the right .NET development technology, so much choice! Pin
Pete O'Hanlon28-May-09 8:45
mvePete O'Hanlon28-May-09 8:45 
QuestionHow to hook the ReadFile API like FileMon does. Pin
deadlyabbas28-May-09 1:04
deadlyabbas28-May-09 1:04 
AnswerCross post. Pin
Pete O'Hanlon28-May-09 1:58
mvePete O'Hanlon28-May-09 1:58 
Questionipc with remoting problem Pin
cignox127-May-09 20:35
cignox127-May-09 20:35 
Questionhow to store logout time. Pin
Member 356741127-May-09 19:00
Member 356741127-May-09 19:00 
AnswerRe: how to store logout time. Pin
Colin Angus Mackay27-May-09 21:00
Colin Angus Mackay27-May-09 21:00 

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.