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

C#

 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Pete O'Hanlon5-Jul-17 4:44
mvePete O'Hanlon5-Jul-17 4:44 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Marc Clifton4-Jul-17 11:26
mvaMarc Clifton4-Jul-17 11:26 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Bernhard Hiller4-Jul-17 21:31
Bernhard Hiller4-Jul-17 21:31 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
ScottM14-Jul-17 22:49
ScottM14-Jul-17 22:49 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Pete O'Hanlon5-Jul-17 1:08
mvePete O'Hanlon5-Jul-17 1:08 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Pete O'Hanlon5-Jul-17 4:20
mvePete O'Hanlon5-Jul-17 4:20 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Rob Philpott5-Jul-17 23:22
Rob Philpott5-Jul-17 23:22 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Pete O'Hanlon6-Jul-17 0:04
mvePete O'Hanlon6-Jul-17 0:04 
You do realise that this was in response to the original poster don't you? I'm not a big fan of "clever code" so I wouldn't tend to write my code like this, this was just a way to show how this could have been done with the basics that were already present without relying on the extra scaffolding the OP put in. As for why a SortedSet, that's what the OP used so I have followed that; presumably he needs the output to be sorted, hence the SortedSet.
This space for rent

AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Gerry Schmitz5-Jul-17 5:13
mveGerry Schmitz5-Jul-17 5:13 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
jschell5-Jul-17 6:28
jschell5-Jul-17 6:28 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
Eddy Vluggen5-Jul-17 7:56
professionalEddy Vluggen5-Jul-17 7:56 
AnswerRe: Is this madness? The pursuit of single-statement methods Pin
BillWoodruff6-Jul-17 0:03
professionalBillWoodruff6-Jul-17 0:03 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Rob Philpott6-Jul-17 0:26
Rob Philpott6-Jul-17 0:26 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
BillWoodruff6-Jul-17 0:55
professionalBillWoodruff6-Jul-17 0:55 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Richard Deeming6-Jul-17 1:30
mveRichard Deeming6-Jul-17 1:30 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
BillWoodruff6-Jul-17 2:29
professionalBillWoodruff6-Jul-17 2:29 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Rob Philpott6-Jul-17 3:22
Rob Philpott6-Jul-17 3:22 
GeneralRe: Is this madness? The pursuit of single-statement methods Pin
Richard Deeming6-Jul-17 3:28
mveRichard Deeming6-Jul-17 3:28 
QuestionRe: Is this madness? The pursuit of single-statement methods Pin
BenScharbach12-Aug-17 9:48
BenScharbach12-Aug-17 9:48 
Questionhi Pin
Member 132829294-Jul-17 9:39
Member 132829294-Jul-17 9:39 
AnswerRe: hi Pin
Pete O'Hanlon4-Jul-17 10:53
mvePete O'Hanlon4-Jul-17 10:53 
AnswerRe: hi Pin
BenScharbach12-Aug-17 9:51
BenScharbach12-Aug-17 9:51 
QuestionC# Serial port data read and write Pin
Member 132923104-Jul-17 4:15
Member 132923104-Jul-17 4:15 
AnswerRe: C# Serial port data read and write Pin
OriginalGriff4-Jul-17 4:22
mveOriginalGriff4-Jul-17 4:22 
GeneralRe: C# Serial port data read and write Pin
Member 132923109-Jul-17 0:48
Member 132923109-Jul-17 0:48 

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.