Click here to Skip to main content
15,924,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hot to detect a mouse hit on an image Pin
vikas amin4-Aug-08 4:57
vikas amin4-Aug-08 4:57 
GeneralRe: Hot to detect a mouse hit on an image Pin
NeutronMass4-Aug-08 5:35
NeutronMass4-Aug-08 5:35 
GeneralRe: Hot to detect a mouse hit on an image Pin
vikas amin12-Aug-08 11:50
vikas amin12-Aug-08 11:50 
QuestionVista C# developer basics Pin
Stevo Z4-Aug-08 3:15
Stevo Z4-Aug-08 3:15 
AnswerRe: Vista C# developer basics Pin
John Ad4-Aug-08 4:54
John Ad4-Aug-08 4:54 
GeneralRe: Vista C# developer basics Pin
Stevo Z4-Aug-08 5:11
Stevo Z4-Aug-08 5:11 
Questionexplicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 3:06
MarkPhB4-Aug-08 3:06 
AnswerRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 3:30
Simon P Stevens4-Aug-08 3:30 
A#1) Yes, SyncRoot was a bit of a balls up from someone at MS.
A#2) http://msdn.microsoft.com/en-us/magazine/cc188793.aspx[^]. Basically, IIRC it all boils down to the fact that your lock object should really be private.
A#3) Create a private object and use that.

private Object _lockObject = new Object();
.
.
.
lock(_lockObject)
{
    ...
}


In theory, if your writing a class to wrap a ICollection object, and if that object is contained privately within your class, and you never expose it directly, then your probably OK to use the SyncRoot object, as it will be private. I'm not totally sure on this though.

Simon

GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 3:57
MarkPhB4-Aug-08 3:57 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 10:58
Simon P Stevens4-Aug-08 10:58 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 19:37
MarkPhB4-Aug-08 19:37 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 23:27
Simon P Stevens4-Aug-08 23:27 
QuestionProblem in excel, Please help................................................................................... Pin
Mogaambo4-Aug-08 3:06
Mogaambo4-Aug-08 3:06 
AnswerRe: Problem in excel, Please help................................................................................... [modified] Pin
Thomas Stockwell4-Aug-08 3:53
professionalThomas Stockwell4-Aug-08 3:53 
QuestionI want to open PDF File in my application Pin
Laji594-Aug-08 2:27
Laji594-Aug-08 2:27 
AnswerRe: I want to open PDF File in my application Pin
Pete O'Hanlon4-Aug-08 2:55
mvePete O'Hanlon4-Aug-08 2:55 
GeneralRe: I want to open PDF File in my application Pin
Laji594-Aug-08 3:22
Laji594-Aug-08 3:22 
GeneralRe: I want to open PDF File in my application Pin
Pete O'Hanlon4-Aug-08 4:07
mvePete O'Hanlon4-Aug-08 4:07 
GeneralReposter... Pin
Paul Conrad4-Aug-08 5:53
professionalPaul Conrad4-Aug-08 5:53 
GeneralRe: I want to open PDF File in my application Pin
Thomas Stockwell4-Aug-08 4:08
professionalThomas Stockwell4-Aug-08 4:08 
AnswerRe: I want to open PDF File in my application Pin
Gulfraz Khan4-Aug-08 4:23
Gulfraz Khan4-Aug-08 4:23 
GeneralRe: I want to open PDF File in my application Pin
Laji594-Aug-08 18:35
Laji594-Aug-08 18:35 
Questioncapturing events at form level Pin
neer14-Aug-08 2:15
neer14-Aug-08 2:15 
AnswerRe: capturing events at form level Pin
Simon P Stevens4-Aug-08 2:21
Simon P Stevens4-Aug-08 2:21 
Questionprinting in C#.net Pin
varun_mca_ju4-Aug-08 2:01
varun_mca_ju4-Aug-08 2: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.