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

C#

 
AnswerRe: C# workin with xsd file Pin
RobCroll30-Aug-12 19:11
RobCroll30-Aug-12 19:11 
AnswerRe: C# workin with xsd file Pin
jschell31-Aug-12 7:13
jschell31-Aug-12 7:13 
QuestionCan I import forms into C# Pin
PapaGeek30-Aug-12 8:32
PapaGeek30-Aug-12 8:32 
AnswerRe: Can I import forms into C# Pin
OriginalGriff30-Aug-12 8:43
mveOriginalGriff30-Aug-12 8:43 
GeneralRe: Can I import forms into C# Pin
PapaGeek30-Aug-12 10:14
PapaGeek30-Aug-12 10:14 
GeneralRe: Can I import forms into C# Pin
OriginalGriff30-Aug-12 21:26
mveOriginalGriff30-Aug-12 21:26 
QuestionIs there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 5:36
professionalglennPattonWork330-Aug-12 5:36 
AnswerRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 6:24
professionalManfred Rudolf Bihy30-Aug-12 6:24 
If delimeter is a char[] with one of the delimiters being the '\n' character, then all you need to add is an optional parameter to the String.Split method:
glennPattonWork wrote:
foreach (string subString in Unit_Reply.Split(delimeter, StringSplitOptions.RemoveEmptyEntries))

StringSplitOptions.RemoveEmptyEntries will remove emtpy entries from the resulting String[] which will occurr if there are two (or possibly more) consecutive '\n' characters in your string.

Regards,

— Manfred

"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925


GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 23:07
professionalglennPattonWork330-Aug-12 23:07 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 23:26
professionalManfred Rudolf Bihy30-Aug-12 23:26 
AnswerRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
PIEBALDconsult30-Aug-12 13:25
mvePIEBALDconsult30-Aug-12 13:25 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
Manfred Rudolf Bihy30-Aug-12 17:25
professionalManfred Rudolf Bihy30-Aug-12 17:25 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork330-Aug-12 23:08
professionalglennPattonWork330-Aug-12 23:08 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
PIEBALDconsult31-Aug-12 4:12
mvePIEBALDconsult31-Aug-12 4:12 
GeneralRe: Is there a way to get a "\n\n" down to a single "\n"? Pin
glennPattonWork331-Aug-12 4:19
professionalglennPattonWork331-Aug-12 4:19 
Questionapp.config file Pin
dcof30-Aug-12 4:09
dcof30-Aug-12 4:09 
AnswerRe: app.config file Pin
jschell30-Aug-12 8:54
jschell30-Aug-12 8:54 
GeneralRe: app.config file Pin
Aby Thomas Varghese30-Aug-12 11:52
Aby Thomas Varghese30-Aug-12 11:52 
GeneralRe: app.config file Pin
dcof30-Aug-12 18:03
dcof30-Aug-12 18:03 
GeneralRe: app.config file Pin
Pete O'Hanlon30-Aug-12 22:17
mvePete O'Hanlon30-Aug-12 22:17 
GeneralRe: app.config file Pin
Pete O'Hanlon30-Aug-12 22:13
mvePete O'Hanlon30-Aug-12 22:13 
GeneralRe: app.config file Pin
jschell31-Aug-12 6:48
jschell31-Aug-12 6:48 
GeneralRe: app.config file Pin
Pete O'Hanlon31-Aug-12 8:56
mvePete O'Hanlon31-Aug-12 8:56 
GeneralRe: app.config file Pin
jschell1-Sep-12 11:08
jschell1-Sep-12 11:08 
QuestionDatabase Usage in Any language Pin
B.Sudhir30-Aug-12 2:41
B.Sudhir30-Aug-12 2:41 

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.