Click here to Skip to main content
15,890,995 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Serilize MouseEventArgs Pin
Doubin1-Oct-11 1:12
Doubin1-Oct-11 1:12 
GeneralRe: Serilize MouseEventArgs Pin
nrnoble3-Oct-11 15:33
nrnoble3-Oct-11 15:33 
QuestionDiscussion: What is the default type (ref or value) for parameters passed to function?? Pin
Cracked-Down19-Mar-09 3:14
Cracked-Down19-Mar-09 3:14 
AnswerRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
Dave Kreskowiak19-Mar-09 3:36
mveDave Kreskowiak19-Mar-09 3:36 
GeneralRe: Discussion: What is the default type (ref or value) for parameters passed to function?? Pin
S. Senthil Kumar19-Mar-09 3:45
S. Senthil Kumar19-Mar-09 3: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.