SingleAssignmentDisposable Constructor
Initializes a new instance if the SingleAssignmentDisposable class.
Namespace: System.Reactive.Disposables
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New SingleAssignmentDisposable()
public SingleAssignmentDisposable()
public:
SingleAssignmentDisposable()
new : unit -> SingleAssignmentDisposable
public function SingleAssignmentDisposable()
Remarks
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.