Welcome to Bangladesh Microsoft Technology Community Sign in | Join | Help

Tuesday, February 05, 2008 - Posts

LINQ Tips: Querying disposable objects in an using block

Be careful while querying the disposable object inside an using block, you may find that the yielded objects are all disposed before you have used them. To get over this issue use the ToList() method. You can exit the using block, and yield the results
posted by Shahed | 0 Comments