Click here to Skip to main content
15,797,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: Streaming data from one datalayer to another Pin
Pete O'Hanlon29-Jun-22 21:46
subeditorPete O'Hanlon29-Jun-22 21:46 
PraiseRe: Streaming data from one datalayer to another Pin
Evilfish200029-Jun-22 22:40
Evilfish200029-Jun-22 22:40 
QuestionC# voice communication between 2 local pcs Pin
Getyourwings UK28-Jun-22 11:07
Getyourwings UK28-Jun-22 11:07 
QuestionIs there anything that Python or Java can do for windows GUI applications while C# can't ? Pin
Code4Ever24-Jun-22 3:33
Code4Ever24-Jun-22 3:33 
AnswerRe: Is there anything that Python or Java can do for windows GUI applications while C# can't ? Pin
Craig Robbins24-Jun-22 7:33
Craig Robbins24-Jun-22 7:33 
AnswerRe: Is there anything that Python or Java can do for windows GUI applications while C# can't ? Pin
Richard MacCutchan24-Jun-22 23:38
mveRichard MacCutchan24-Jun-22 23:38 
QuestionLinq TO SQL DistinctBy Question Pin
Kevin Marois23-Jun-22 19:16
professionalKevin Marois23-Jun-22 19:16 
AnswerRe: Linq TO SQL DistinctBy Question Pin
OriginalGriff23-Jun-22 20:49
mvaOriginalGriff23-Jun-22 20:49 
Since you are creating a new instance for each item you check in the comparer, it will return every instance as a new, distinct element, since it will compare instance references and by definition new returns different references each time it is called.

Have a look here: C# – DistinctBy extension[^] - it explains the extension method quite well.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Linq TO SQL DistinctBy Question Pin
Richard Deeming23-Jun-22 23:36
mveRichard Deeming23-Jun-22 23:36 
AnswerRe: Linq TO SQL DistinctBy Question Pin
Richard Deeming23-Jun-22 23:43
mveRichard Deeming23-Jun-22 23:43 
QuestionDrawing with c# Pin
Member 1557095223-Jun-22 0:08
Member 1557095223-Jun-22 0:08 
AnswerRe: Drawing with c# Pin
Richard Deeming23-Jun-22 0:55
mveRichard Deeming23-Jun-22 0:55 
GeneralRe: Drawing with c# Pin
Member 1557095223-Jun-22 1:08
Member 1557095223-Jun-22 1:08 
GeneralRe: Drawing with c# Pin
Richard Deeming23-Jun-22 1:42
mveRichard Deeming23-Jun-22 1:42 
AnswerRe: Drawing with c# Pin
Gerry Schmitz23-Jun-22 4:09
mveGerry Schmitz23-Jun-22 4:09 
AnswerRe: Drawing with c# Pin
OriginalGriff23-Jun-22 4:59
mvaOriginalGriff23-Jun-22 4:59 
AnswerRe: Drawing with c# Pin
Member 1557095223-Jun-22 22:16
Member 1557095223-Jun-22 22:16 
GeneralRe: Drawing with c# Pin
Richard Deeming23-Jun-22 23:24
mveRichard Deeming23-Jun-22 23:24 
GeneralRe: Drawing with c# Pin
Member 1557095224-Jun-22 0:20
Member 1557095224-Jun-22 0:20 
GeneralRe: Drawing with c# Pin
Victor Nijegorodov24-Jun-22 6:54
Victor Nijegorodov24-Jun-22 6:54 
GeneralRe: Drawing with c# Pin
Dave Kreskowiak24-Jun-22 6:58
mveDave Kreskowiak24-Jun-22 6:58 
GeneralMessage Closed Pin
24-Jun-22 16:28
professionalKevin Marois24-Jun-22 16:28 
GeneralRe: Drawing with c# Pin
trønderen24-Jun-22 18:02
trønderen24-Jun-22 18:02 
QuestionSimple Paint app in winforms Pin
Aafaan_Jii21-Jun-22 0:19
Aafaan_Jii21-Jun-22 0:19 
AnswerRe: Simple Paint app in winforms Pin
OriginalGriff21-Jun-22 0:40
mvaOriginalGriff21-Jun-22 0:40 

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.