Don't Mix Lambda Expressions and Using Statements

Lambda expressions are really cool, but they present some interesting problems because they aren't really inline code blocks like they appear:

http://blogs.msdn.com/jaredpar/archive/2008/07/16/don-t-mix-using-statements-and-lambda-expressions.aspx

 

Published Wednesday, July 16, 2008 8:46 AM by Jesse Ezell

Comments

# re: Don't Mix Lambda Expressions and Using Statements

Wednesday, July 16, 2008 2:11 PM by Carl

Thanks for the post, that's actually good to know. I haven't gotten into lambdas much, but, now I know not to put them inside a using statement.  

Leave a Comment

(required) 
(required) 
(optional)
(required)