Click here to Skip to main content
15,919,028 members
Home / Discussions / C#
   

C#

 
Questionexit a function Pin
rzvme19-Jan-07 19:39
rzvme19-Jan-07 19:39 
AnswerRe: exit a function Pin
dabuskol19-Jan-07 20:10
dabuskol19-Jan-07 20:10 
AnswerRe: exit a function Pin
Bassam Saoud19-Jan-07 21:38
Bassam Saoud19-Jan-07 21:38 
QuestionC# Distribution Pin
picstudent19-Jan-07 19:09
picstudent19-Jan-07 19:09 
AnswerRe: C# Distribution Pin
Christian Graus19-Jan-07 19:24
protectorChristian Graus19-Jan-07 19:24 
GeneralRe: C# Distribution [modified] Pin
picstudent19-Jan-07 19:51
picstudent19-Jan-07 19:51 
QuestionWhich XML classes to use? Pin
Lord Kixdemp19-Jan-07 14:55
Lord Kixdemp19-Jan-07 14:55 
AnswerRe: Which XML classes to use? Pin
Phillip M. Hoff19-Jan-07 17:50
Phillip M. Hoff19-Jan-07 17:50 
The answer is: it depends! Both XmlDocument and XmlTextReader/Writer are perfectly valid ways to read and write XML files. The reasons for choosing one or the other depend on how the application intends to use the XML files. XmlDocument allows one to add or query XML nodes at random. To do so, it has to load the entire document before it can be used and keep the document in memory. On the other hand, XmlTextReader/Writer are forward-only reader/writers. That is, they visit each node sequentially in a stream-like manner. This makes the classes very fast and light on memory, but at the cost of more limited capabilities and being somewhat more difficult to use.

I often find myself using a combination of the two in my applications: XmlDocument to read and extract data from XML documents (because it's easy and flexible) and XmlTextWriter to write XML documents (because it's easy and fast).

-Phil
GeneralRe: Which XML classes to use? Pin
Lord Kixdemp24-Jan-07 8:24
Lord Kixdemp24-Jan-07 8:24 
QuestionC# decompiler? Pin
Eddymvp19-Jan-07 14:50
Eddymvp19-Jan-07 14:50 
AnswerRe: C# decompiler? Pin
prolibertine19-Jan-07 15:55
prolibertine19-Jan-07 15:55 
GeneralRe: C# decompiler? Pin
Scott Dorman19-Jan-07 17:48
professionalScott Dorman19-Jan-07 17:48 
QuestionGenerating menu items dynamically from Collection? Pin
TrooperIronMan19-Jan-07 13:01
TrooperIronMan19-Jan-07 13:01 
AnswerRe: Generating menu items dynamically from Collection? Pin
Mostafa Siraj19-Jan-07 13:05
Mostafa Siraj19-Jan-07 13:05 
GeneralRe: Generating menu items dynamically from Collection? Pin
TrooperIronMan19-Jan-07 13:12
TrooperIronMan19-Jan-07 13:12 
GeneralRe: Generating menu items dynamically from Collection? Pin
TrooperIronMan19-Jan-07 13:31
TrooperIronMan19-Jan-07 13:31 
AnswerRe: Generating menu items dynamically from Collection? Pin
Christian Graus19-Jan-07 13:37
protectorChristian Graus19-Jan-07 13:37 
AnswerRe: Generating menu items dynamically from Collection? Pin
Luc Pattyn19-Jan-07 14:32
sitebuilderLuc Pattyn19-Jan-07 14:32 
Questionhow to restrict combo box only to list values? Pin
michal.kreslik19-Jan-07 12:47
michal.kreslik19-Jan-07 12:47 
AnswerRe: how to restrict combo box only to list values? Pin
quiteSmart19-Jan-07 12:52
quiteSmart19-Jan-07 12:52 
GeneralRe: how to restrict combo box only to list values? Pin
michal.kreslik19-Jan-07 12:55
michal.kreslik19-Jan-07 12:55 
GeneralRe: how to restrict combo box only to list values? Pin
quiteSmart19-Jan-07 13:03
quiteSmart19-Jan-07 13:03 
QuestionMaking a class-write-only member? Pin
Lord Kixdemp19-Jan-07 12:41
Lord Kixdemp19-Jan-07 12:41 
AnswerRe: Making a class-write-only member? Pin
Luc Pattyn19-Jan-07 12:56
sitebuilderLuc Pattyn19-Jan-07 12:56 
AnswerRe: Making a class-write-only member? Pin
Christian Graus19-Jan-07 13:08
protectorChristian Graus19-Jan-07 13:08 

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.