Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
Dalek Dave27-Feb-11 22:47
professionalDalek Dave27-Feb-11 22:47 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
Keith Barrow27-Feb-11 22:52
professionalKeith Barrow27-Feb-11 22:52 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes27-Feb-11 23:56
professionalMycroft Holmes27-Feb-11 23:56 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Keith Barrow28-Feb-11 0:31
professionalKeith Barrow28-Feb-11 0:31 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
OriginalGriff27-Feb-11 23:14
mveOriginalGriff27-Feb-11 23:14 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 0:00
professionalMycroft Holmes28-Feb-11 0:00 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
OriginalGriff28-Feb-11 0:08
mveOriginalGriff28-Feb-11 0:08 
AnswerRe: Is there a cute way to do this - sort of challenge PinPopular
J a a n s27-Feb-11 23:27
professionalJ a a n s27-Feb-11 23:27 
string actual = "/100/101/201/";
var result = actual.ToCharArray()
                   .Select((x, y) => new { ch = x, pos = y })
                   .Where(x => x.ch == '/' && x.pos > 0)
                   .Select(x => actual.Substring(0, x.pos + 1))
                   .ToArray();
string derived = String.Join("|", result); 
Console.WriteLine(derived); 


Is this cute? Smile | :)
"Never put off until run time what you can do at compile time."
- David Gries, in "Compiler Construction for Digital Computers", circa 1969.

GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes27-Feb-11 23:55
professionalMycroft Holmes27-Feb-11 23:55 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
J a a n s28-Feb-11 0:34
professionalJ a a n s28-Feb-11 0:34 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
OriginalGriff28-Feb-11 0:05
mveOriginalGriff28-Feb-11 0:05 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
J a a n s28-Feb-11 0:33
professionalJ a a n s28-Feb-11 0:33 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 1:31
professionalMycroft Holmes28-Feb-11 1:31 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
OriginalGriff28-Feb-11 1:33
mveOriginalGriff28-Feb-11 1:33 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
Eddy Vluggen27-Feb-11 23:41
professionalEddy Vluggen27-Feb-11 23:41 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 0:07
professionalMycroft Holmes28-Feb-11 0:07 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
GenJerDan28-Feb-11 3:52
GenJerDan28-Feb-11 3:52 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Eddy Vluggen28-Feb-11 4:24
professionalEddy Vluggen28-Feb-11 4:24 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
GenJerDan28-Feb-11 4:28
GenJerDan28-Feb-11 4:28 
AnswerRe: Is there a cute way to do this - sort of challenge Pin
PIEBALDconsult28-Feb-11 10:03
mvePIEBALDconsult28-Feb-11 10:03 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
Mycroft Holmes28-Feb-11 12:04
professionalMycroft Holmes28-Feb-11 12:04 
GeneralRe: Is there a cute way to do this - sort of challenge Pin
PIEBALDconsult1-Mar-11 2:07
mvePIEBALDconsult1-Mar-11 2:07 
QuestionReading loaded form data Pin
shahidhabib27-Feb-11 15:11
shahidhabib27-Feb-11 15:11 
AnswerRe: Reading loaded form data Pin
Not Active27-Feb-11 17:28
mentorNot Active27-Feb-11 17:28 
AnswerRe: Reading loaded form data Pin
Wayne Gaylard27-Feb-11 20:20
professionalWayne Gaylard27-Feb-11 20:20 

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.