Click or drag to resize

ResourceReleaser<T> Class

This is a tool that can be used for managing the automatic releasing of resources via the using statement.
Inheritance Hierarchy
System.Object
  Atalasoft.Imaging.ResourceReleaser<T>
    Atalasoft.Imaging.BinaryPaletteEnforcer
    Atalasoft.Imaging.Memory.PixelMemoryLocker

Namespace:  Atalasoft.Imaging
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class ResourceReleaser<T> : IDisposable

Type Parameters

T

The ResourceReleaser<T> type exposes the following members.

Constructors
Methods
  NameDescription
Public methodDispose()
Disposes the ResourceReleaser.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the ResourceReleaser<T> class.
(Overrides Object.Finalize().)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldmVal
The backing field for the val parameter.
Top
Remarks
See PixelMemoryLock for a concrete example of this class.
Examples
See Also