Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Rx.NET/System.Reactive.Core/Reactive/Disposables/BooleanDisposable.cs')
-rw-r--r--Rx.NET/System.Reactive.Core/Reactive/Disposables/BooleanDisposable.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/Rx.NET/System.Reactive.Core/Reactive/Disposables/BooleanDisposable.cs b/Rx.NET/System.Reactive.Core/Reactive/Disposables/BooleanDisposable.cs
deleted file mode 100644
index 1f1a21f..0000000
--- a/Rx.NET/System.Reactive.Core/Reactive/Disposables/BooleanDisposable.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
-
-namespace System.Reactive.Disposables
-{
- /// <summary>
- /// Represents a disposable resource that can be checked for disposal status.
- /// </summary>
- public sealed class BooleanDisposable : ICancelable
- {
- // Keep internal! This is used as sentinel in other IDisposable implementations to detect disposal and
- // should never be exposed to user code in order to prevent users from swapping in the sentinel. Have
- // a look at the code in e.g. SingleAssignmentDisposable for usage patterns.
- internal static readonly BooleanDisposable True = new BooleanDisposable(true);
-
- private volatile bool _isDisposed;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="T:System.Reactive.Disposables.BooleanDisposable"/> class.
- /// </summary>
- public BooleanDisposable()
- {
- }
-
- private BooleanDisposable(bool isDisposed)
- {
- _isDisposed = isDisposed;
- }
-
- /// <summary>
- /// Gets a value that indicates whether the object is disposed.
- /// </summary>
- public bool IsDisposed
- {
- get { return _isDisposed; }
- }
-
- /// <summary>
- /// Sets the status to disposed, which can be observer through the <see cref="IsDisposed"/> property.
- /// </summary>
- public void Dispose()
- {
- _isDisposed = true;
- }
- }
-}