Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: An interview Question Pin
J4amieC26-Oct-09 2:24
J4amieC26-Oct-09 2:24 
AnswerMessage Closed Pin
26-Oct-09 1:35
stancrm26-Oct-09 1:35 
GeneralRe: An interview Question Pin
Mogamboo_Khush_Hua26-Oct-09 1:54
Mogamboo_Khush_Hua26-Oct-09 1:54 
GeneralRe: An interview Question Pin
J4amieC26-Oct-09 2:25
J4amieC26-Oct-09 2:25 
QuestionInvoke C dll functions and structs in C# [modified] Pin
fifthjourney26-Oct-09 0:38
fifthjourney26-Oct-09 0:38 
AnswerRe: Invoke C dll functions and structs in C# Pin
Keith Barrow26-Oct-09 0:43
professionalKeith Barrow26-Oct-09 0:43 
QuestionDifference between Monitor.TryEnter(object,Timespan) and Monitor.Wait(object,Timespan) Pin
frommi26-Oct-09 0:12
frommi26-Oct-09 0:12 
AnswerRe: Difference between Monitor.TryEnter(object,Timespan) and Monitor.Wait(object,Timespan) Pin
Simon P Stevens26-Oct-09 0:43
Simon P Stevens26-Oct-09 0:43 
Monitor.Wait is not a replacement or alternative for Monitor.TryEnter. The current method
bool TryEnter(Object obj)
is being obsoleted because the suggested replacement is
void TryEnter(Object obj, ref bool lockTaken)
So there isn't really any major change, just that the boolean will now be returned as a by ref parameter instead of a return value from the method.

(If you want to know the reasons for why the old TryEnter is being made obsolete you can read about it here[^])

Monitor.Wait()[^] is totally different. It basically releases the lock on an object and blocks the current thread until a different thread called Monitor.Pulse() to signal that the thread can reacquire the lock and continue.

Simon

AnswerProblem with System.Diagnostics.Process.Start [modified] Pin
Slavakr26-Oct-09 0:10
Slavakr26-Oct-09 0:10 
AnswerRe: Problem with System.Diagnostics.Process.Start Pin
Simon P Stevens26-Oct-09 0:15
Simon P Stevens26-Oct-09 0:15 
GeneralRe: Problem with System.Diagnostics.Process.Start Pin
Slavakr26-Oct-09 0:31
Slavakr26-Oct-09 0:31 
GeneralRe: Problem with System.Diagnostics.Process.Start Pin
Simon P Stevens26-Oct-09 1:03
Simon P Stevens26-Oct-09 1:03 
QuestionShow Windows Desktop, nothing else... Pin
Naruki25-Oct-09 23:39
Naruki25-Oct-09 23:39 
AnswerRe: Show Windows Desktop, nothing else... Pin
Simon P Stevens26-Oct-09 0:11
Simon P Stevens26-Oct-09 0:11 
GeneralRe: Show Windows Desktop, nothing else... Pin
Naruki26-Oct-09 4:08
Naruki26-Oct-09 4:08 
AnswerRe: Show Windows Desktop, nothing else... Pin
Shorgov26-Oct-09 0:16
Shorgov26-Oct-09 0:16 
GeneralRe: Show Windows Desktop, nothing else... Pin
Naruki26-Oct-09 4:20
Naruki26-Oct-09 4:20 
QuestionHow to get contents of cache memory in c#? Pin
Swapnil 200925-Oct-09 23:24
Swapnil 200925-Oct-09 23:24 
AnswerRe: How to get contents of cache memory in c#? Pin
Abhishek Sur25-Oct-09 23:32
professionalAbhishek Sur25-Oct-09 23:32 
GeneralRe: How to get contents of cache memory in c#? Pin
Swapnil 200925-Oct-09 23:42
Swapnil 200925-Oct-09 23:42 
AnswerRe: How to get contents of cache memory in c#? Pin
Jaiprakash M Bankolli25-Oct-09 23:43
Jaiprakash M Bankolli25-Oct-09 23:43 
GeneralRe: How to get contents of cache memory in c#? Pin
Swapnil 200926-Oct-09 0:04
Swapnil 200926-Oct-09 0:04 
Questionproblem with custom control properties value Pin
Lyon Sun25-Oct-09 23:18
Lyon Sun25-Oct-09 23:18 
AnswerMessage Closed Pin
25-Oct-09 23:35
stancrm25-Oct-09 23:35 
GeneralRe: problem with custom control properties value Pin
Lyon Sun25-Oct-09 23:45
Lyon Sun25-Oct-09 23: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.