Dispose Method Dispose(Boolean) Disposes the objects. C# protected virtual void Dispose(bool disposing) Parameters Type Name Description System.Boolean disposing Dispose() Calls Dispose(true). C# public void Dispose()