Click here to Skip to main content
15,888,802 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Jquery in asp.net Pin
Pete O'Hanlon2-May-10 5:26
mvePete O'Hanlon2-May-10 5:26 
Questionhttp Basic authentication(RFC2617) Pin
kunaltilak29-Apr-10 20:27
kunaltilak29-Apr-10 20:27 
AnswerRe: http Basic authentication(RFC2617) Pin
T M Gray3-May-10 7:44
T M Gray3-May-10 7:44 
GeneralRe: http Basic authentication(RFC2617) Pin
The Man from U.N.C.L.E.4-May-10 3:29
The Man from U.N.C.L.E.4-May-10 3:29 
QuestionMessage Removed Pin
29-Apr-10 4:52
professionalN_tro_P29-Apr-10 4:52 
AnswerRe: lock Pin
Luc Pattyn29-Apr-10 4:55
sitebuilderLuc Pattyn29-Apr-10 4:55 
GeneralMessage Removed Pin
29-Apr-10 5:02
professionalN_tro_P29-Apr-10 5:02 
GeneralRe: lock Pin
Luc Pattyn29-Apr-10 5:07
sitebuilderLuc Pattyn29-Apr-10 5:07 
all is fine if the outside world cannot touch the lock object, so if you have say a return _collection; somewhere, then the first is no good. Same for the second if you were to have a way to export _collectionLock somehow.

It is good practice to have a private member that is used for locking and locking only. That makes verification a bit easier.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


GeneralMessage Removed Pin
29-Apr-10 5:38
professionalN_tro_P29-Apr-10 5:38 
GeneralRe: lock Pin
Luc Pattyn29-Apr-10 5:48
sitebuilderLuc Pattyn29-Apr-10 5:48 
GeneralMessage Removed Pin
29-Apr-10 5:50
professionalN_tro_P29-Apr-10 5:50 
GeneralRe: lock PinPopular
Luc Pattyn29-Apr-10 5:57
sitebuilderLuc Pattyn29-Apr-10 5:57 
GeneralMessage Removed Pin
29-Apr-10 6:07
professionalN_tro_P29-Apr-10 6:07 
GeneralRe: lock Pin
Covean29-Apr-10 6:23
Covean29-Apr-10 6:23 
GeneralRe: lock Pin
Alex Manolescu29-Apr-10 11:34
Alex Manolescu29-Apr-10 11:34 
GeneralRe: lock Pin
Dave Kreskowiak29-Apr-10 7:01
mveDave Kreskowiak29-Apr-10 7:01 
GeneralRe: lock Pin
Covean29-Apr-10 6:13
Covean29-Apr-10 6:13 
GeneralRe: lock Pin
supercat929-Apr-10 9:11
supercat929-Apr-10 9:11 
GeneralRe: lock Pin
Luc Pattyn29-Apr-10 9:38
sitebuilderLuc Pattyn29-Apr-10 9:38 
GeneralRe: lock Pin
supercat929-Apr-10 13:10
supercat929-Apr-10 13:10 
GeneralRe: lock Pin
Luc Pattyn29-Apr-10 13:56
sitebuilderLuc Pattyn29-Apr-10 13:56 
GeneralRe: lock Pin
supercat930-Apr-10 5:02
supercat930-Apr-10 5:02 
GeneralRe: lock Pin
Luc Pattyn30-Apr-10 5:19
sitebuilderLuc Pattyn30-Apr-10 5:19 
GeneralEnumerators Pin
supercat930-Apr-10 6:12
supercat930-Apr-10 6:12 
GeneralRe: Enumerators Pin
Luc Pattyn30-Apr-10 9:18
sitebuilderLuc Pattyn30-Apr-10 9:18 

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.