I’ve typically used the C# using construct to wrap an instance on an object that has a short lifetime and requires a call to Dispose. The using keyword hides the need to call Dispose explicitly and avoids having to use a try-finally to ensure that Dispose is always called. One example of a class that [...]
Archive for the ‘nmock’ Category
Rethinking the C# using statement
Posted in C#, mocks, nmock on February 11, 2008 | 2 Comments »
