For example a have a class:
public class MyClass{
Bitmap bmp;
}
The Bitmap class is disposable.
In case when I do not implement IDisposable in MyClass and there is no no references to instance of MyClass, it means that there is no references to instance of Bitmap class, so the GarbageCollector will call finalizer of Bitmap and all unmanaged resources will be released.
Why code analyzers recommend to Implement IDisposable in MyClass?