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.

System.Object
  System.Reactive.Disposables.SingleAssignmentDisposable

Namespace:  System.Reactive.Disposables
Assembly:  System.Reactive (in System.Reactive.dll)

public class SingleAssignmentDisposable : IDisposable

The SingleAssignmentDisposable type exposes the following members.

  NameDescription
Public methodSingleAssignmentDisposableInitializes a new instance if the SingleAssignmentDisposable class.
Top

  NameDescription
Public propertyDisposableGets or sets the underlying disposable.
Public propertyIsDisposedGets a value indicating whether the object is disposed.
Top

  NameDescription
Public methodDisposeDisposes the underlying disposable.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: