exception inside lock before lock body

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

exception inside lock before lock body

lock(foo()){bar();} what will happen if foo() throws an exception? will
there be a lock on the exception?
 
Daniel said:
exception inside lock before lock body

lock(foo()){bar();} what will happen if foo() throws an exception? will
there be a lock on the exception?

Please don't multi-post like this - you've had the same answer from
three different people now, on three different groups. If you'd only
posted on one group, you (probably) wouldn't have had people answering
you when there was already an answer.

See http://www.pobox.com/~skeet/csharp/faq/posting.html
 
Back
Top