Suppose I have the following:
using(var ctx = DataContextFactory.Create(0)) { ... Some code ... }
Why not just do the following and lose a
The only place you don't want to use a using block is where the disposable object is scoped outside of the function. In this case, your class should implement IDisposable and dispose of the object in its Dispose().