Click here to Skip to main content
15,887,436 members
Home / Discussions / C#
   

C#

 
GeneralRe: Automatic unit tests Pin
Hila Berger1-Mar-18 0:10
Hila Berger1-Mar-18 0:10 
GeneralRe: Automatic unit tests Pin
Pete O'Hanlon1-Mar-18 0:32
mvePete O'Hanlon1-Mar-18 0:32 
AnswerRe: Automatic unit tests Pin
Eddy Vluggen27-Feb-18 2:02
professionalEddy Vluggen27-Feb-18 2:02 
GeneralRe: Automatic unit tests Pin
Hila Berger1-Mar-18 0:12
Hila Berger1-Mar-18 0:12 
GeneralRe: Automatic unit tests Pin
Eddy Vluggen1-Mar-18 0:28
professionalEddy Vluggen1-Mar-18 0:28 
AnswerRe: Automatic unit tests Pin
Bohdan Stupak27-Feb-18 4:37
professionalBohdan Stupak27-Feb-18 4:37 
QuestionFinally! I found a valid use for the ref keyword Pin
Foothill26-Feb-18 10:57
professionalFoothill26-Feb-18 10:57 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Richard Deeming26-Feb-18 11:57
mveRichard Deeming26-Feb-18 11:57 
Foothill wrote:
What does the community think about this?

I think you should be using System.Xml.Linq[^] to build your XML documents. Smile | :)

If you build your own XML generator, you're bound to run into edge cases that you hadn't considered.

For example, if your input contains "Test]]>", your "valid" string will contain "<![CDATA[Test]]>]]>", which is not valid XML.

Using XLinq:
new XCData("Test]]>")
gives:
XML
<![CDATA[Test]]]]><![CDATA[>]]>
which looks odd, but is valid.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:08
professionalFoothill27-Feb-18 3:08 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 3:12
professionalEddy Vluggen27-Feb-18 3:12 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:31
professionalFoothill27-Feb-18 3:31 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 3:42
professionalEddy Vluggen27-Feb-18 3:42 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Eddy Vluggen27-Feb-18 5:23
professionalEddy Vluggen27-Feb-18 5:23 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Bohdan Stupak26-Feb-18 23:18
professionalBohdan Stupak26-Feb-18 23:18 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 3:25
professionalFoothill27-Feb-18 3:25 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Gerry Schmitz27-Feb-18 6:15
mveGerry Schmitz27-Feb-18 6:15 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Richard Deeming27-Feb-18 6:30
mveRichard Deeming27-Feb-18 6:30 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Foothill27-Feb-18 6:32
professionalFoothill27-Feb-18 6:32 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Gerry Schmitz27-Feb-18 7:01
mveGerry Schmitz27-Feb-18 7:01 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
Richard Deeming27-Feb-18 7:45
mveRichard Deeming27-Feb-18 7:45 
GeneralRe: Finally! I found a valid use for the ref keyword Pin
phil.o27-Feb-18 13:22
professionalphil.o27-Feb-18 13:22 
AnswerRe: Finally! I found a valid use for the ref keyword Pin
Bernhard Hiller27-Feb-18 21:30
Bernhard Hiller27-Feb-18 21:30 
Question[Solved] How to force DataGridView.CellValidating fires when user mouse click somewhere else? Pin
Mars Lam25-Feb-18 22:26
Mars Lam25-Feb-18 22:26 
AnswerRe: How to force DataGridView.CellValidating fires when user mouse click somewhere else? Pin
Eddy Vluggen26-Feb-18 0:02
professionalEddy Vluggen26-Feb-18 0:02 
GeneralRe: How to force DataGridView.CellValidating fires when user mouse click somewhere else? Pin
Mars Lam26-Feb-18 16:38
Mars Lam26-Feb-18 16:38 

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.