If I have a SomeDisposableObject class which implements IDisposable:
class SomeDisposableObject : IDisposable
{
public void Dis
An interesting thing that I've encountered is that SqlCommand owns an SqlConnection (both implement IDisposable) instance usually. However calling dispose on the SqlCommand will NOT dispose the connection too.
I've discovered this also with the help of Stackoverflow right here.
So in other words it matters if the "child" (nested?) instance can/will be reused later.