Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
QuestionHow Can I get Keyboard Layout? Pin
3DoorsDown14-Aug-06 4:54
3DoorsDown14-Aug-06 4:54 
AnswerRe: How Can I get Keyboard Layout? Pin
Judah Gabriel Himango14-Aug-06 5:44
sponsorJudah Gabriel Himango14-Aug-06 5:44 
GeneralRe: How Can I get Keyboard Layout? Pin
3DoorsDown18-Aug-06 9:23
3DoorsDown18-Aug-06 9:23 
Questionhow to draw on control Pin
mortadacode14-Aug-06 4:49
mortadacode14-Aug-06 4:49 
AnswerRe: how to draw on control Pin
Super Lloyd14-Aug-06 5:05
Super Lloyd14-Aug-06 5:05 
QuestionITemplate Pin
erikkl200014-Aug-06 4:26
erikkl200014-Aug-06 4:26 
QuestionXML document definition problem Pin
Super Lloyd14-Aug-06 4:24
Super Lloyd14-Aug-06 4:24 
AnswerRe: XML document definition problem Pin
Dustin Metzgar14-Aug-06 4:46
Dustin Metzgar14-Aug-06 4:46 
Super Lloyd wrote:
What do you think?

Well, first of all, I think that the count attribute does not have a purpose. You should be able to just read the child nodes one at a time and add them to your list. Also, what is to say that the property key doesn't contain special characters or spaces?

It seems to me that you're limiting yourself by allowing the user to specify the attributes. If you add a section inside your root node called "properties" and use the <add key="..." value="..."/> format like Microsoft does, you enable yourself to write a concrete XML schema. This allows you to validate the XML against the schema first before trying to parse it, which is a good way to catch structure errors early without having to have all the validation code stuck in your deserialization code.




Logifusion[^]
If not entertaining, write your Congressman.
GeneralRe: XML document definition problem Pin
Super Lloyd14-Aug-06 4:59
Super Lloyd14-Aug-06 4:59 
QuestionPrintPreviewDialog Pin
Support12314-Aug-06 4:17
Support12314-Aug-06 4:17 
QuestionAdding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 4:09
Ista14-Aug-06 4:09 
AnswerRe: Adding a List to a List with AddRange Pin
Colin Angus Mackay14-Aug-06 4:16
Colin Angus Mackay14-Aug-06 4:16 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 4:42
Ista14-Aug-06 4:42 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango14-Aug-06 6:44
sponsorJudah Gabriel Himango14-Aug-06 6:44 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 6:48
Ista14-Aug-06 6:48 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango14-Aug-06 8:30
sponsorJudah Gabriel Himango14-Aug-06 8:30 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 9:35
Ista14-Aug-06 9:35 
GeneralRe: Adding a List to a List with AddRange Pin
Judah Gabriel Himango15-Aug-06 4:32
sponsorJudah Gabriel Himango15-Aug-06 4:32 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista15-Aug-06 9:37
Ista15-Aug-06 9:37 
AnswerRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 5:06
Andrew Rissing14-Aug-06 5:06 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 5:23
Ista14-Aug-06 5:23 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 5:46
Andrew Rissing14-Aug-06 5:46 
GeneralRe: Adding a List to a List with AddRange [modified] Pin
Ista14-Aug-06 6:47
Ista14-Aug-06 6:47 
GeneralRe: Adding a List to a List with AddRange Pin
Andrew Rissing14-Aug-06 6:58
Andrew Rissing14-Aug-06 6:58 
GeneralRe: Adding a List to a List with AddRange Pin
Ista14-Aug-06 7:03
Ista14-Aug-06 7:03 

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.