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

C#

 
AnswerRe: Deleting characters from a list<char> Pin
Eddy Vluggen25-Feb-23 6:24
professionalEddy Vluggen25-Feb-23 6:24 
AnswerRe: Deleting characters from a list<char> Pin
lmoelleb27-Feb-23 4:45
lmoelleb27-Feb-23 4:45 
AnswerRe: Deleting characters from a list<char> Pin
jochance7-Mar-23 8:21
jochance7-Mar-23 8:21 
QuestionC# xml serialization Pin
di24125313416-Feb-23 2:02
di24125313416-Feb-23 2:02 
AnswerRe: C# xml serialization Pin
Richard Deeming16-Feb-23 2:17
mveRichard Deeming16-Feb-23 2:17 
AnswerRe: C# xml serialization Pin
Dave Kreskowiak16-Feb-23 2:28
mveDave Kreskowiak16-Feb-23 2:28 
AnswerRe: C# xml serialization Pin
OriginalGriff16-Feb-23 9:00
mveOriginalGriff16-Feb-23 9:00 
QuestionSQL Injection Detection Pin
Member 805432115-Feb-23 5:01
Member 805432115-Feb-23 5:01 
AnswerRe: SQL Injection Detection Pin
OriginalGriff15-Feb-23 5:21
mveOriginalGriff15-Feb-23 5:21 
Question.NetMAUI and NAudio Pin
D^Handy14-Feb-23 17:47
D^Handy14-Feb-23 17:47 
AnswerRe: .NetMAUI and NAudio Pin
Gerry Schmitz15-Feb-23 12:35
mveGerry Schmitz15-Feb-23 12:35 
GeneralRe: .NetMAUI and NAudio Pin
D^Handy15-Feb-23 12:40
D^Handy15-Feb-23 12:40 
GeneralRe: .NetMAUI and NAudio Pin
D^Handy15-Feb-23 12:41
D^Handy15-Feb-23 12:41 
GeneralRe: .NetMAUI and NAudio Pin
Gerry Schmitz15-Feb-23 13:51
mveGerry Schmitz15-Feb-23 13:51 
Questionusing cout down timer using c# Pin
Member 1592384614-Feb-23 3:44
Member 1592384614-Feb-23 3:44 
AnswerRe: using cout down timer using c# Pin
OriginalGriff14-Feb-23 4:04
mveOriginalGriff14-Feb-23 4:04 
AnswerRe: using cout down timer using c# Pin
jschell14-Feb-23 4:57
jschell14-Feb-23 4:57 
QuestionAsync functions Pin
Antti Pehkonen12-Feb-23 3:42
Antti Pehkonen12-Feb-23 3:42 
AnswerRe: Async functions Pin
Richard Deeming12-Feb-23 21:45
mveRichard Deeming12-Feb-23 21:45 
Quite a significant difference.

In the first example, you essentially spin up a new thread, block that thread waiting for a synchronous network call to complete, and sign up the calling thread to be notified when the new thread completes. Whilst it may sometimes be useful for keeping a desktop UI responsive, it's not great for performance.

In the second example, you kick off an asynchronous network call, and sign up the calling thread to be notified when that call completes. That's a much more efficient approach.



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

GeneralRe: Async functions Pin
Antti Pehkonen13-Feb-23 0:23
Antti Pehkonen13-Feb-23 0:23 
QuestionConverting Linq to Sql Code (SOLVED) Pin
samflex8-Feb-23 16:43
samflex8-Feb-23 16:43 
AnswerRe: Converting Linq to Sql Code Pin
Dave Kreskowiak8-Feb-23 17:35
mveDave Kreskowiak8-Feb-23 17:35 
GeneralRe: Converting Linq to Sql Code Pin
samflex8-Feb-23 17:48
samflex8-Feb-23 17:48 
GeneralRe: Converting Linq to Sql Code Pin
Dave Kreskowiak8-Feb-23 17:49
mveDave Kreskowiak8-Feb-23 17:49 
GeneralRe: Converting Linq to Sql Code Pin
samflex8-Feb-23 18:22
samflex8-Feb-23 18:22 

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.