 Dispose pattern

In object-oriented programming, the dispose pattern is a design pattern for resource management.In this pattern, a resource is held by an object, and released by calling a method – usually called codice_1, codice_2, codice_3, codice_4, or similar – which releases any resources the object is holding onto.