Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
AnswerRe: convert class to dll Pin
musefan19-Mar-09 4:44
musefan19-Mar-09 4:44 
AnswerRe: convert class to dll Pin
Cracked-Down19-Mar-09 5:29
Cracked-Down19-Mar-09 5:29 
QuestionSend an email witch c# Pin
abbd19-Mar-09 4:32
abbd19-Mar-09 4:32 
AnswerRe: Send an email witch c# Pin
Xmen Real 19-Mar-09 4:35
professional Xmen Real 19-Mar-09 4:35 
AnswerRe: Send an email witch c# Pin
Jacob Dixon19-Mar-09 4:36
Jacob Dixon19-Mar-09 4:36 
AnswerRe: Send an email witch c# Pin
musefan19-Mar-09 4:37
musefan19-Mar-09 4:37 
GeneralRe: Send an email witch c# Pin
Xmen Real 19-Mar-09 4:42
professional Xmen Real 19-Mar-09 4:42 
GeneralRe: Send an email witch c# Pin
musefan19-Mar-09 4:46
musefan19-Mar-09 4:46 
AnswerRe: Send an email witch c# Pin
Yusuf19-Mar-09 5:18
Yusuf19-Mar-09 5:18 
AnswerRe: Send an email witch c# Pin
Ivan Pavlenko20-Mar-09 3:30
Ivan Pavlenko20-Mar-09 3:30 
QuestionThreadsafe property Pin
Philip.F19-Mar-09 4:24
Philip.F19-Mar-09 4:24 
AnswerRe: Threadsafe property Pin
Roger Alsing19-Mar-09 4:36
Roger Alsing19-Mar-09 4:36 
AnswerRe: Threadsafe property Pin
Nicholas Butler19-Mar-09 4:38
sitebuilderNicholas Butler19-Mar-09 4:38 
This will not work if your intent is to synchronize access to the MyType instance. You are only holding the lock while getting the reference to the instance. You then return the instance to the calling code which may then use it without synchronization.

The solution depends on what the calling code does with the MyType instance. You could expose a synchronization object in the Manager class, but that is open to abuse. Or you could add methods for manipulating the instance through the Manager class and use locks in those methods. YMMV.

Nick

----------------------------------
Be excellent to each other Smile | :)

GeneralRe: Threadsafe property Pin
Philip.F19-Mar-09 5:04
Philip.F19-Mar-09 5:04 
GeneralRe: Threadsafe property Pin
Nicholas Butler19-Mar-09 6:58
sitebuilderNicholas Butler19-Mar-09 6:58 
AnswerRe: Threadsafe property Pin
led mike19-Mar-09 5:00
led mike19-Mar-09 5:00 
GeneralRe: Threadsafe property Pin
Philip.F19-Mar-09 5:05
Philip.F19-Mar-09 5:05 
GeneralRe: Threadsafe property Pin
led mike19-Mar-09 7:01
led mike19-Mar-09 7:01 
Questionabout DataRow Pin
clj1987050319-Mar-09 4:11
clj1987050319-Mar-09 4:11 
AnswerRe: about DataRow Pin
musefan19-Mar-09 4:35
musefan19-Mar-09 4:35 
QuestionSerilize MouseEventArgs Pin
yesu prakash19-Mar-09 3:42
yesu prakash19-Mar-09 3:42 
AnswerRe: Serilize MouseEventArgs Pin
Mirko198019-Mar-09 3:55
Mirko198019-Mar-09 3:55 
AnswerRe: Serilize MouseEventArgs Pin
DaveyM6919-Mar-09 4:06
professionalDaveyM6919-Mar-09 4:06 
GeneralRe: Serilize MouseEventArgs Pin
nrnoble2-Sep-11 16:16
nrnoble2-Sep-11 16:16 
GeneralRe: Serilize MouseEventArgs Pin
DaveyM694-Sep-11 6:45
professionalDaveyM694-Sep-11 6:45 

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.