Click or drag to resize

DisposableCallback Structure

A struct that executes a certain action upon disposing. The intended use for this is inside of a using block to assist in the proper release of a lock. Being a struct, it is unsafe make copies of this struct as Dispose may be called multiple times.
Inheritance Hierarchy
SystemObject
  SystemValueType
    GSF.ThreadingDisposableCallback

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public struct DisposableCallback : IDisposable
View Source

The DisposableCallback type exposes the following members.

Constructors
 NameDescription
Public methodDisposableCallback Creates a read lock
Top
Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also