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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top