I have a following class:
public class MyClass : IDisposable
{
private WebServiceHost m_WebServiceHost;
// Members
public void Dispose()
{
m_WebServiceHost // how do I dispose this object?
}
}
WebServiceHost implements IDisposable, but it has no Dispose method.
How do I implement Dispose()?
Given that it uses explicit interface implementation, it's not clear to me that they want you to, but you can:
I would guess that they'd prefer you just to call
Close()on it, but I can't back that up from documentation yet.