Skip to content

SingleAssignmentDisposableValue struct

Defined in

Namespace: System.Reactive.Disposables Assembly: System.Reactive.dll Full name: System.Reactive.Disposables.SingleAssignmentDisposableValue Modifiers: public sealed

Summary

Represents a disposable resource which only allows a single assignment of its underlying disposable resource. If an underlying disposable resource has already been set, future attempts to set the underlying disposable resource will throw an InvalidOperationException.

Applies to

netstandard2.0

Properties

NameSummary
IsDisposedGets a value that indicates whether the object is disposed.
DisposableGets or sets the underlying disposable. After disposal, the result of getting this property is undefined.

Methods

NameSummary
DisposeDisposes the underlying disposable.
Equals
GetHashCode

Operators

NameSummary
static op_Equality
static op_Inequality