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

C#

 
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 
Rob Philpott wrote:
The bit which has me intrigued now is the Set<t> class. Didn't know there was such a thing. HashSet would be my go to choice, so I presume its an internal-to-framework class.

Yes, it's an internal class within the Enumerable class: Enumerable.Set<TElement>[^]

I'd have used a HashSet<T> as well, but I guess MS were probably writing the Distinct method before the HashSet class was finished.

Either that, or there were some very specific performance issues they were trying to work around. But if that was the case, I'd have expected to see a comment explaining the problem they were trying to solve.



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


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 
AnswerRe: C# Serial port data read and write Pin
Gerry Schmitz4-Jul-17 5:15
mveGerry Schmitz4-Jul-17 5:15 
GeneralRe: C# Serial port data read and write Pin
Member 132923109-Jul-17 0:46
Member 132923109-Jul-17 0:46 
AnswerRe: C# Serial port data read and write Pin
Bernhard Hiller4-Jul-17 21:38
Bernhard Hiller4-Jul-17 21:38 
GeneralRe: C# Serial port data read and write Pin
Member 132923109-Jul-17 0:47
Member 132923109-Jul-17 0:47 
Questionobject reference use else where : on application.run(new form1()) Pin
prog.sidra2-Jul-17 6:40
prog.sidra2-Jul-17 6:40 
AnswerRe: object reference use else where : on application.run(new form1()) Pin
Pete O'Hanlon2-Jul-17 7:12
mvePete O'Hanlon2-Jul-17 7:12 
AnswerRe: object reference use else where : on application.run(new form1()) Pin
Pete O'Hanlon2-Jul-17 22:42
mvePete O'Hanlon2-Jul-17 22:42 
QuestionCould not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' Pin
jubayer1-Jul-17 23:33
jubayer1-Jul-17 23:33 
AnswerRe: Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b9a188c8922137c6' Pin
Eddy Vluggen2-Jul-17 1:08
professionalEddy Vluggen2-Jul-17 1:08 
QuestionC# Color challenge Pin
BillWoodruff30-Jun-17 15:25
professionalBillWoodruff30-Jun-17 15:25 

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.