Click here to Skip to main content
11,486,466 members (75,873 online)
   

C#

 
AnswerRe: Learning C# .Net - From where to start.? Pin
Richard MacCutchan28-Jan-13 23:53
mvpRichard MacCutchan28-Jan-13 23:53 
AnswerRe: Learning C# .Net - From where to start.? Pin
Abhinav S29-Jan-13 20:02
mvpAbhinav S29-Jan-13 20:02 
QuestionSocket programming Pin
Naina Dhande28-Jan-13 20:04
memberNaina Dhande28-Jan-13 20:04 
AnswerRe: Socket programming Pin
Richard MacCutchan28-Jan-13 23:51
mvpRichard MacCutchan28-Jan-13 23:51 
AnswerRe: Socket programming Pin
pt140129-Jan-13 11:35
memberpt140129-Jan-13 11:35 
QuestionDisplay an array elements in 2 columns using the console Pin
TheGermoz28-Jan-13 10:53
memberTheGermoz28-Jan-13 10:53 
AnswerRe: Display an array elements in 2 columns using the console Pin
Richard Deeming28-Jan-13 11:09
memberRichard Deeming28-Jan-13 11:09 
GeneralRe: Display an array elements in 2 columns using the console Pin
TheGermoz28-Jan-13 12:47
memberTheGermoz28-Jan-13 12:47 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 10:35
memberMichCl28-Jan-13 10:35 
AnswerRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult28-Jan-13 17:02
memberPIEBALDconsult28-Jan-13 17:02 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 3:18
memberMichCl29-Jan-13 3:18 
GeneralRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult29-Jan-13 4:16
memberPIEBALDconsult29-Jan-13 4:16 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 10:35
memberMichCl28-Jan-13 10:35 
AnswerRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon28-Jan-13 10:51
protectorPete O'Hanlon28-Jan-13 10:51 
The answer is that you aren't comparing the same thing here. What BackgroundWorker does is allow your code to run asynchronously, which simplistically means that the computer will allocate time to run the code on a different thread. This means that there is no guarantee when the code in the async side runs - or completes.

When you run the code on the primary thread, then all the time that your program is running this section of code is allocated to it (assuming you haven't created any other threads), but you will block the primary thread here. I would suggest that you have a read about threading, and investigate the Task classes that make asynchronous code a lot easier.
I was brought up to respect my elders. I don't respect many people nowadays.

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 3:19
memberMichCl29-Jan-13 3:19 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 5:02
memberMichCl29-Jan-13 5:02 
GeneralRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon29-Jan-13 5:12
protectorPete O'Hanlon29-Jan-13 5:12 
QuestionGroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 9:18
memberJD8628-Jan-13 9:18 
AnswerRe: GroupPrincipalExt can not be used in a query against this store Pin
Richard Deeming28-Jan-13 9:26
memberRichard Deeming28-Jan-13 9:26 
GeneralRe: GroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 10:49
memberJD8628-Jan-13 10:49 
QuestionCheck if polygon is Inside another Pin
gilvani28-Jan-13 8:48
membergilvani28-Jan-13 8:48 
AnswerRe: Check if polygon is Inside another [modified] Pin
pt140128-Jan-13 9:05
memberpt140128-Jan-13 9:05 
GeneralRe: Check if polygon is Inside another Pin
gilvani29-Jan-13 0:03
membergilvani29-Jan-13 0:03 
AnswerRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 5:12
memberAlan Balkany29-Jan-13 5:12 
GeneralRe: Check if polygon is Inside another Pin
gilvani29-Jan-13 5:16
membergilvani29-Jan-13 5:16 
GeneralRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 5:22
memberAlan Balkany29-Jan-13 5:22 
QuestionProblems in retrieving HttpResponse content Pin
tiwal28-Jan-13 5:16
membertiwal28-Jan-13 5:16 
AnswerRe: Problems in retrieving HttpResponse content Pin
Richard Deeming28-Jan-13 6:06
memberRichard Deeming28-Jan-13 6:06 
GeneralRe: Problems in retrieving HttpResponse content Pin
tiwal29-Jan-13 0:02
membertiwal29-Jan-13 0:02 
QuestionAbout method TextWriter.Write() Pin
taibc28-Jan-13 0:52
membertaibc28-Jan-13 0:52 
AnswerRe: About method TextWriter.Write() Pin
BobJanova28-Jan-13 1:34
memberBobJanova28-Jan-13 1:34 
AnswerRe: About method TextWriter.Write() Pin
Richard MacCutchan28-Jan-13 1:37
mvpRichard MacCutchan28-Jan-13 1:37 
GeneralRe: About method TextWriter.Write() Pin
PIEBALDconsult28-Jan-13 4:28
memberPIEBALDconsult28-Jan-13 4:28 
AnswerRe: About method TextWriter.Write() Pin
taibc28-Jan-13 15:51
membertaibc28-Jan-13 15:51 
QuestionNotifyicon in C# website Pin
NickyRamshaw27-Jan-13 22:48
memberNickyRamshaw27-Jan-13 22:48 
AnswerRe: Notifyicon in C# website Pin
BobJanova28-Jan-13 1:35
memberBobJanova28-Jan-13 1:35 
GeneralRe: Notifyicon in C# website Pin
NickyRamshaw28-Jan-13 1:52
memberNickyRamshaw28-Jan-13 1:52 
GeneralRe: Notifyicon in C# website Pin
Pete O'Hanlon28-Jan-13 2:00
protectorPete O'Hanlon28-Jan-13 2:00 
GeneralRe: Notifyicon in C# website Pin
NickyRamshaw28-Jan-13 2:34
memberNickyRamshaw28-Jan-13 2:34 
GeneralRe: Notifyicon in C# website Pin
Pete O'Hanlon28-Jan-13 2:43
protectorPete O'Hanlon28-Jan-13 2:43 
Questionfrom java to c# Pin
superamh27-Jan-13 6:46
membersuperamh27-Jan-13 6:46 
AnswerRe: from java to c# Pin
Richard MacCutchan27-Jan-13 7:27
mvpRichard MacCutchan27-Jan-13 7:27 
AnswerRe: from java to c# Pin
Dave Doknjas27-Jan-13 17:37
memberDave Doknjas27-Jan-13 17:37 
QuestionC# timeout on linq to sql Pin
dcof27-Jan-13 3:52
memberdcof27-Jan-13 3:52 
AnswerRe: C# timeout on linq to sql Pin
Dave Kreskowiak27-Jan-13 4:50
mvpDave Kreskowiak27-Jan-13 4:50 
AnswerRe: C# timeout on linq to sql Pin
jschell27-Jan-13 7:10
memberjschell27-Jan-13 7:10 
AnswerRe: C# timeout on linq to sql Pin
V.27-Jan-13 21:41
memberV.27-Jan-13 21:41 
Questionactivity-selection algorithm in c# Pin
mazizi026-Jan-13 21:36
membermazizi026-Jan-13 21:36 
AnswerRe: activity-selection algorithm in c# Pin
Pete O'Hanlon26-Jan-13 22:16
protectorPete O'Hanlon26-Jan-13 22:16 
GeneralRe: activity-selection algorithm in c# Pin
mazizi027-Jan-13 10:37
membermazizi027-Jan-13 10:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 26 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid