Click here to Skip to main content
15,921,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: adding a checkbox to a datagridview Pin
Mogaambo17-Aug-08 22:34
Mogaambo17-Aug-08 22:34 
GeneralRe: adding a checkbox to a datagridview Pin
laziale17-Aug-08 22:39
laziale17-Aug-08 22:39 
QuestionString placeholder and html causing it to encode Pin
reverland17-Aug-08 20:56
reverland17-Aug-08 20:56 
AnswerRe: String placeholder and html causing it to encode Pin
Guffa17-Aug-08 21:00
Guffa17-Aug-08 21:00 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 6:17
reverland18-Aug-08 6:17 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 6:50
Guffa18-Aug-08 6:50 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 7:02
reverland18-Aug-08 7:02 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 10:45
Guffa18-Aug-08 10:45 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 10:53
reverland18-Aug-08 10:53 
Questionvisual c++ vs c# Pin
Mogaambo17-Aug-08 20:53
Mogaambo17-Aug-08 20:53 
AnswerRe: visual c++ vs c# Pin
Christian Graus17-Aug-08 21:56
protectorChristian Graus17-Aug-08 21:56 
GeneralRe: visual c++ vs c# Pin
Mogaambo17-Aug-08 22:06
Mogaambo17-Aug-08 22:06 
GeneralRe: visual c++ vs c# Pin
Manas Bhardwaj18-Aug-08 2:39
professionalManas Bhardwaj18-Aug-08 2:39 
QuestionBinding DataGridView Columns with DataTable Columns Pin
Piyush Vaishnav17-Aug-08 20:16
Piyush Vaishnav17-Aug-08 20:16 
QuestionParsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 19:48
N a v a n e e t h17-Aug-08 19:48 
AnswerRe: Parsing Nullable DateTime Pin
Guffa17-Aug-08 21:03
Guffa17-Aug-08 21:03 
GeneralRe: Parsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 21:05
N a v a n e e t h17-Aug-08 21:05 
GeneralRe: Parsing Nullable DateTime Pin
benjymous17-Aug-08 23:57
benjymous17-Aug-08 23:57 
GeneralRe: Parsing Nullable DateTime Pin
Guffa18-Aug-08 2:42
Guffa18-Aug-08 2:42 
QuestionRename xml file name in C# [Resolved] Pin
CodingLover17-Aug-08 18:24
CodingLover17-Aug-08 18:24 
AnswerRe: Rename xml file name in C# Pin
CodingLover17-Aug-08 19:00
CodingLover17-Aug-08 19:00 
QuestionC# CodeDom CodeMethodInvokeExpression Class Pin
AndieDu17-Aug-08 16:27
AndieDu17-Aug-08 16:27 
QuestionDoes a method execute on the same thread for its entire length? Pin
JoeRip17-Aug-08 14:07
JoeRip17-Aug-08 14:07 
I'm logging what thread my event handler is running on. My original log statement looks like this:

public void myEventHandler()
{
     AnotherMethodWhereWorkIsDone(data);

     System.Diagnostics.Debugger.Log(0,"", "Current thread is: " + Threading.CurrentThread.GetHashCode());

}


However, it occurs to me that this will actually report the thread that Debugger.Log is running on, and not that of my handler.

So then I snapshotted the CurrentThread.GetHashCode() at the top of my method.

public void myEventHandler()
{
     int currHashCode = Threading.CurrentThread.GetHashCode();

     AnotherMethodWhereWorkIsDone(data);

     System.Diagnostics.Debugger.Log(0,"", "Current thread is: " + currHashCode);

}


But now it occurs to me that I have no idea if my method is guaranteed to be executing on the same thread all the way through. Is there some chance that after AnotherMethodWhereWorkIsDone() executes, my handler will be running on a different thread than when I shapshotted it above AnotherMethodWhereWorkIsDone()?
AnswerRe: Does a method execute on the same thread for its entire length? Pin
Judah Gabriel Himango17-Aug-08 14:28
sponsorJudah Gabriel Himango17-Aug-08 14:28 
GeneralRe: Does a method execute on the same thread for its entire length? Pin
JoeRip17-Aug-08 14:32
JoeRip17-Aug-08 14:32 

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.