CA2000

The .NET analyzer rule that warns when an IDisposable object may go out of scope without being disposed.

In more detail

A disposable object that is never disposed keeps its underlying resource open until the garbage collector eventually runs. Leaked files, sockets or connections can exhaust a service, which is why the course raises this rule to a warning.

Related terms

Taught in

References