I was just tidying up some code when I found this region in the class:
#region IDisposable Members
void IDisposable.Dispose()
{
}
#endregion
Now understand that this is implementing the Dispose method for the IDisposable interface and I know that the class declaration says that this class will implement the IDisposable interface.
What I don't get is why it reads:
void IDisposable.Dispose()
And not:
public void Dispose()
I guess that the IDisposable.Dispose indicated explicitly that this is the Dispose that implements the IDisposable interface? Is this correct and what's the advantage of doing this?