Click here to Skip to main content
15,916,846 members
Home / Discussions / C#
   

C#

 
GeneralCOM+ in .NET Pin
Member 212799219-Aug-05 14:04
Member 212799219-Aug-05 14:04 
Questionperformence ? Pin
drick_6719-Aug-05 12:02
drick_6719-Aug-05 12:02 
AnswerRe: performence ? Pin
Matt Gerrans19-Aug-05 14:22
Matt Gerrans19-Aug-05 14:22 
AnswerRe: performence ? Pin
Guffa19-Aug-05 22:25
Guffa19-Aug-05 22:25 
GeneralDrawing Numbers on a WinForm: Basics Pin
...---...19-Aug-05 11:28
...---...19-Aug-05 11:28 
GeneralXML Database Pin
surfman1919-Aug-05 11:02
surfman1919-Aug-05 11:02 
GeneralRe: XML Database Pin
rudy.net19-Aug-05 13:52
rudy.net19-Aug-05 13:52 
GeneralLock question Pin
Steve Messer19-Aug-05 10:59
Steve Messer19-Aug-05 10:59 
If I have the following in my class

private static object padlock = new object();


Then somewhere in my class I happen to call this more than once

lock( padlock )
{
  // do something clever
}


If I call lock on padlock more than once what is happening behind the scenes?

1) Are the number of references to padlock incremented?

2) Or is the Exit method just called once for each lock()

Thanks
GeneralRe: Lock question Pin
Guffa19-Aug-05 22:19
Guffa19-Aug-05 22:19 
GeneralRe: Lock question Pin
Steve Messer20-Aug-05 4:58
Steve Messer20-Aug-05 4:58 
GeneralRe: Lock question Pin
Guffa20-Aug-05 13:31
Guffa20-Aug-05 13:31 
GeneralRe: Lock question Pin
Steve Messer20-Aug-05 13:48
Steve Messer20-Aug-05 13:48 
GeneralRe: Lock question Pin
Guffa21-Aug-05 1:23
Guffa21-Aug-05 1:23 
GeneralRe: Lock question Pin
Steve Messer21-Aug-05 2:43
Steve Messer21-Aug-05 2:43 
GeneralGDI+ Paths and Regions Pin
mpastchenko19-Aug-05 8:39
mpastchenko19-Aug-05 8:39 
GeneralRe: GDI+ Paths and Regions Pin
mpastchenko19-Aug-05 11:37
mpastchenko19-Aug-05 11:37 
GeneralLabel Graph Tick Mark Axis, Mistake Pin
...---...19-Aug-05 7:09
...---...19-Aug-05 7:09 
GeneralRe: Label Graph Tick Mark Axis, Mistake Pin
...---...19-Aug-05 7:13
...---...19-Aug-05 7:13 
GeneralRe: Label Graph Tick Mark Axis, Mistake Pin
Guffa19-Aug-05 7:17
Guffa19-Aug-05 7:17 
QuestionHow2 assign specific class type to generic object type? Pin
Dennis McMahon19-Aug-05 7:08
Dennis McMahon19-Aug-05 7:08 
AnswerRe: How2 assign specific class type to generic object type? Pin
AndrewJMarshall19-Aug-05 7:36
AndrewJMarshall19-Aug-05 7:36 
GeneralRe: How2 assign specific class type to generic object type? Pin
Dennis McMahon19-Aug-05 8:01
Dennis McMahon19-Aug-05 8:01 
GeneralDataGrid bounded to a DataTable with composite key. Pin
miah alom19-Aug-05 6:55
miah alom19-Aug-05 6:55 
GeneralRe: DataGrid bounded to a DataTable with composite key. Pin
rudy.net19-Aug-05 13:35
rudy.net19-Aug-05 13:35 
GeneralRe: DataGrid bounded to a DataTable with composite key. Pin
miah alom21-Aug-05 6:01
miah alom21-Aug-05 6:01 

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.