SingleAssignmentDisposable Class
A SingleAssignmentDisposable only allows a single assignment of its disposable object. If it has already been assigned, attempts to set the underlying object will throw an InvalidOperationException.
Inheritance Hierarchy
System.Object
System.Reactive.Disposables.SingleAssignmentDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Class SingleAssignmentDisposable _
Implements IDisposable
'Usage
Dim instance As SingleAssignmentDisposable
public class SingleAssignmentDisposable : IDisposable
public ref class SingleAssignmentDisposable : IDisposable
type SingleAssignmentDisposable =
class
interface IDisposable
end
public class SingleAssignmentDisposable implements IDisposable
The SingleAssignmentDisposable type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SingleAssignmentDisposable | Initializes a new instance if the SingleAssignmentDisposable class. |
Top
Properties
Name | Description | |
---|---|---|
Disposable | Gets or sets the underlying disposable. | |
IsDisposed | Gets a value indicating whether the object is disposed. |
Top
Methods
Name | Description | |
---|---|---|
Dispose | Disposes the underlying disposable. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.