Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
GeneralRe: VS.NET Replace Window-Like Behavior Pin
bneacetp10-Jun-05 7:26
bneacetp10-Jun-05 7:26 
GeneralSend file to Recycle Bin instead of deleting permanently Pin
Anonymous10-Jun-05 3:17
Anonymous10-Jun-05 3:17 
GeneralRe: Send file to Recycle Bin instead of deleting permanently Pin
Carsten Zeumer10-Jun-05 3:47
Carsten Zeumer10-Jun-05 3:47 
GeneralRe: Send file to Recycle Bin instead of deleting permanently Pin
Anonymous10-Jun-05 16:55
Anonymous10-Jun-05 16:55 
GeneralRe: Send file to Recycle Bin instead of deleting permanently Pin
Carsten Zeumer12-Jun-05 0:18
Carsten Zeumer12-Jun-05 0:18 
Questionhow can i create a dll? Pin
Anonymous10-Jun-05 2:46
Anonymous10-Jun-05 2:46 
AnswerRe: how can i create a dll? Pin
MoustafaS10-Jun-05 4:47
MoustafaS10-Jun-05 4:47 
General@-quoted strings Pin
Member 118129410-Jun-05 2:39
Member 118129410-Jun-05 2:39 
I've got a slight problem with @-quoted strings in C#. I'm reading some XML formatted data using a XmlTextReader. At some point in this process I get a chunk of text that contains some escape sequences. I want to use this as the format part in an StringBuilder.AppendFormat() method.

StringBuilder  sb = new StringBuilder() ;<br />
string format = myXmlTextReader.Value ;<br />
sb.AppendFormat(format, ...) ;


However the value in format is @-quoted. If I look in the debugger it shows the following:

format = @"The user says\n{0}"

I just can't work out how to un @-quote the string in code. Confused | :confused: I want the newline in the string not the \n. There must be a simple way to do this but I just can't find it!




TIA Jackson
GeneralRe: @-quoted strings Pin
Carsten Zeumer10-Jun-05 2:47
Carsten Zeumer10-Jun-05 2:47 
GeneralRe: @-quoted strings Pin
S. Senthil Kumar10-Jun-05 2:49
S. Senthil Kumar10-Jun-05 2:49 
GeneralRe: @-quoted strings Pin
Member 118129410-Jun-05 3:14
Member 118129410-Jun-05 3:14 
GeneralRe: @-quoted strings Pin
S. Senthil Kumar10-Jun-05 3:36
S. Senthil Kumar10-Jun-05 3:36 
GeneralRe: @-quoted strings Pin
Member 118129410-Jun-05 3:47
Member 118129410-Jun-05 3:47 
GeneralRe: @-quoted strings Pin
S. Senthil Kumar10-Jun-05 4:01
S. Senthil Kumar10-Jun-05 4:01 
GeneralRe: @-quoted strings Pin
Member 118129410-Jun-05 4:07
Member 118129410-Jun-05 4:07 
GeneralRe: @-quoted strings Pin
Pyro Joe10-Jun-05 9:50
Pyro Joe10-Jun-05 9:50 
GeneralIndexed textboxes Pin
patgo10-Jun-05 2:27
patgo10-Jun-05 2:27 
GeneralRe: Indexed textboxes Pin
S. Senthil Kumar10-Jun-05 2:47
S. Senthil Kumar10-Jun-05 2:47 
GeneralThank you very much!!! Pin
patgo10-Jun-05 3:36
patgo10-Jun-05 3:36 
GeneralRe: Indexed textboxes Pin
Colin Angus Mackay10-Jun-05 2:58
Colin Angus Mackay10-Jun-05 2:58 
GeneralThank you very much!!! Pin
patgo10-Jun-05 3:36
patgo10-Jun-05 3:36 
GeneralRe: Indexed textboxes Pin
Member 118129410-Jun-05 4:17
Member 118129410-Jun-05 4:17 
GeneralRe: Indexed textboxes Pin
nemopeti10-Jun-05 12:24
nemopeti10-Jun-05 12:24 
GeneralCustom Editor for TreeView Nodes!!!&amp;#9786; Pin
sharaabi10-Jun-05 2:08
sharaabi10-Jun-05 2:08 
QuestionHow to close a form in its Load event handler Pin
Waleed Eissa10-Jun-05 1:14
Waleed Eissa10-Jun-05 1:14 

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.