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