Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: Display an array elements in 2 columns using the console Pin
Richard Deeming28-Jan-13 10:09
mveRichard Deeming28-Jan-13 10:09 
GeneralRe: Display an array elements in 2 columns using the console Pin
PozzaVecia28-Jan-13 11:47
PozzaVecia28-Jan-13 11:47 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 9:35
MichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult28-Jan-13 16:02
mvePIEBALDconsult28-Jan-13 16:02 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 2:18
MichCl29-Jan-13 2:18 
GeneralRe: Does backgroundWorker make code slower? Pin
PIEBALDconsult29-Jan-13 3:16
mvePIEBALDconsult29-Jan-13 3:16 
QuestionDoes backgroundWorker make code slower? Pin
MichCl28-Jan-13 9:35
MichCl28-Jan-13 9:35 
AnswerRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon28-Jan-13 9:51
mvePete O'Hanlon28-Jan-13 9: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 2:19
MichCl29-Jan-13 2:19 
GeneralRe: Does backgroundWorker make code slower? Pin
MichCl29-Jan-13 4:02
MichCl29-Jan-13 4:02 
GeneralRe: Does backgroundWorker make code slower? Pin
Pete O'Hanlon29-Jan-13 4:12
mvePete O'Hanlon29-Jan-13 4:12 
QuestionGroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 8:18
JD8628-Jan-13 8:18 
AnswerRe: GroupPrincipalExt can not be used in a query against this store Pin
Richard Deeming28-Jan-13 8:26
mveRichard Deeming28-Jan-13 8:26 
GeneralRe: GroupPrincipalExt can not be used in a query against this store Pin
JD8628-Jan-13 9:49
JD8628-Jan-13 9:49 
QuestionCheck if polygon is Inside another Pin
gilvani28-Jan-13 7:48
gilvani28-Jan-13 7:48 
AnswerRe: Check if polygon is Inside another Pin
pt140128-Jan-13 8:05
pt140128-Jan-13 8:05 
GeneralRe: Check if polygon is Inside another Pin
gilvani28-Jan-13 23:03
gilvani28-Jan-13 23:03 
AnswerRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 4:12
Alan Balkany29-Jan-13 4:12 
GeneralRe: Check if polygon is Inside another Pin
gilvani29-Jan-13 4:16
gilvani29-Jan-13 4:16 
GeneralRe: Check if polygon is Inside another Pin
Alan Balkany29-Jan-13 4:22
Alan Balkany29-Jan-13 4:22 
QuestionProblems in retrieving HttpResponse content Pin
tiwal28-Jan-13 4:16
tiwal28-Jan-13 4:16 
AnswerRe: Problems in retrieving HttpResponse content Pin
Richard Deeming28-Jan-13 5:06
mveRichard Deeming28-Jan-13 5:06 
GeneralRe: Problems in retrieving HttpResponse content Pin
tiwal28-Jan-13 23:02
tiwal28-Jan-13 23:02 
QuestionAbout method TextWriter.Write() Pin
taibc27-Jan-13 23:52
taibc27-Jan-13 23:52 
AnswerRe: About method TextWriter.Write() Pin
BobJanova28-Jan-13 0:34
BobJanova28-Jan-13 0:34 

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.