浏览代码

Merge pull request #1336 from dotnet/dev/bartde/rx_nullable_step0

First step to enable nullable in Rx.
Bart J.F. De Smet 5 年之前
父节点
当前提交
615d91af9f
共有 100 个文件被更改,包括 200 次插入0 次删除
  1. 2 0
      Rx.NET/Source/src/System.Reactive/AnonymousObservable.cs
  2. 2 0
      Rx.NET/Source/src/System.Reactive/AnonymousObserver.cs
  3. 2 0
      Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs
  4. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/AsyncLock.cs
  5. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/CatchScheduler.cs
  6. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayer.cs
  7. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.Windows.cs
  8. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.cs
  9. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/CurrentThreadScheduler.cs
  10. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs
  11. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/DisableOptimizationsScheduler.cs
  12. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs
  13. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/HistoricalScheduler.cs
  14. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/IScheduledItem.cs
  15. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/IScheduler.cs
  16. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ISchedulerLongRunning.cs
  17. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ISchedulerPeriodic.cs
  18. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatch.cs
  19. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatchProvider.cs
  20. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ImmediateScheduler.cs
  21. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/LocalScheduler.TimerQueue.cs
  22. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/LocalScheduler.cs
  23. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/NewThreadScheduler.cs
  24. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ScheduledItem.cs
  25. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Async.cs
  26. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs
  27. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Services.Emulation.cs
  28. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Services.cs
  29. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Simple.cs
  30. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Wrappers.cs
  31. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.cs
  32. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerDefaults.cs
  33. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerOperation.cs
  34. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerQueue.cs
  35. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerWrapper.cs
  36. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.ObserveOn.cs
  37. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.Synchronize.cs
  38. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.cs
  39. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs
  40. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/TaskHelpers.cs
  41. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs
  42. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/Thread.Stub.cs
  43. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.Windows.cs
  44. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.cs
  45. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/UserWorkItem.cs
  46. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.Extensions.cs
  47. 2 0
      Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.cs
  48. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/AnonymousDisposable.cs
  49. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/BooleanDisposable.cs
  50. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/CancellationDisposable.cs
  51. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs
  52. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/ContextDisposable.cs
  53. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/Disposable.cs
  54. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/ICancelable.cs
  55. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/MultipleAssignmentDisposable.cs
  56. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/RefCountDisposable.cs
  57. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/ScheduledDisposable.cs
  58. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/SerialDisposable.cs
  59. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/SingleAssignmentDisposable.cs
  60. 2 0
      Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs
  61. 2 0
      Rx.NET/Source/src/System.Reactive/EnlightenmentProvider.cs
  62. 2 0
      Rx.NET/Source/src/System.Reactive/EventPattern.cs
  63. 2 0
      Rx.NET/Source/src/System.Reactive/EventPatternSource.cs
  64. 2 0
      Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs
  65. 2 0
      Rx.NET/Source/src/System.Reactive/EventSource.cs
  66. 2 0
      Rx.NET/Source/src/System.Reactive/ExcludeFromCodeCoverageAttribute.cs
  67. 2 0
      Rx.NET/Source/src/System.Reactive/ExperimentalAttribute.cs
  68. 2 0
      Rx.NET/Source/src/System.Reactive/GlobalSuppressions.cs
  69. 2 0
      Rx.NET/Source/src/System.Reactive/IEventPattern.cs
  70. 2 0
      Rx.NET/Source/src/System.Reactive/IEventPatternSource.cs
  71. 2 0
      Rx.NET/Source/src/System.Reactive/IEventSource.cs
  72. 2 0
      Rx.NET/Source/src/System.Reactive/IObserver.Result.cs
  73. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/AnonymousEnumerable.cs
  74. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/AsyncLockObserver.cs
  75. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/AutoDetachObserver.cs
  76. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/BinaryObserver.cs
  77. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/CheckedObserver.cs
  78. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ConcatSink.cs
  79. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Constants.cs
  80. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/CurrentPlatformEnlightenmentProvider.cs
  81. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Either.Generic.cs
  82. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ExceptionHelper.cs
  83. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.Default.cs
  84. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.cs
  85. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ExceptionServicesImpl.cs
  86. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/HalfSerializer.cs
  87. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Helpers.cs
  88. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/HostLifecycleNotifications.Windows.cs
  89. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/HostLifecycleService.cs
  90. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/IConcatenatable.cs
  91. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/IEvaluatableObservable.cs
  92. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ISafeObserver.cs
  93. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/IdentitySink.cs
  94. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/ImmutableList.cs
  95. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Lookup.cs
  96. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Observers.cs
  97. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/PlatformEnlightenmentProvider.cs
  98. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/PriorityQueue.cs
  99. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/Producer.cs
  100. 2 0
      Rx.NET/Source/src/System.Reactive/Internal/PushPullAdapter.cs

+ 2 - 0
Rx.NET/Source/src/System.Reactive/AnonymousObservable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/AnonymousObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/AsyncLock.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/CatchScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 using System.Runtime.CompilerServices;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayer.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 using System.Reactive.PlatformServices;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.Windows.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if NO_THREAD && WINDOWS
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ConcurrencyAbstractionLayerImpl.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if !NO_THREAD
 using System.Reactive.Disposables;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/CurrentThreadScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/DefaultScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/DisableOptimizationsScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Linq;
 using System.Runtime.CompilerServices;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/EventLoopScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Reactive.Disposables;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/HistoricalScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Diagnostics;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/IScheduledItem.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/IScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ISchedulerLongRunning.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ISchedulerPeriodic.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatch.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatchProvider.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /*

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ImmediateScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/LocalScheduler.TimerQueue.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Reactive.Disposables;
 using System.Reactive.PlatformServices;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/LocalScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/NewThreadScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ScheduledItem.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Reactive.Disposables;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Async.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 using System.Threading;
 using System.Threading.Tasks;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Recursive.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Services.Emulation.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Diagnostics;
 using System.Reactive.Disposables;
 using System.Reactive.PlatformServices;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Services.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     //

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Simple.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.Wrappers.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     public static partial class Scheduler

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Scheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Globalization;
 using System.Reactive.PlatformServices;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerDefaults.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     internal static class SchedulerDefaults

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerOperation.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 using System.Runtime.CompilerServices;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerQueue.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/SchedulerWrapper.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Runtime.CompilerServices;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.ObserveOn.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.Synchronize.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Concurrency
 {
     internal sealed class Synchronize<TSource> : Producer<TSource, Synchronize<TSource>._>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Synchronization.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 using System.Reactive.Disposables;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/SynchronizationContextScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/TaskHelpers.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 using System.Threading.Tasks;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 using System.Threading;
 using System.Threading.Tasks;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/Thread.Stub.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if NO_THREAD
 using System.Threading.Tasks;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.Windows.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if LEGACY_WINRT
 using System.ComponentModel;
 using Windows.System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/ThreadPoolScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if !LEGACY_WINRT && !NO_THREAD
 using System.Reactive.Disposables;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/UserWorkItem.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information.
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.Extensions.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive.Concurrency

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Concurrency/VirtualTimeScheduler.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Globalization;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/AnonymousDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive.Disposables

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/BooleanDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Disposables
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/CancellationDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive.Disposables

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/CompositeDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections;
 using System.Collections.Generic;
 using System.Threading;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/ContextDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Concurrency;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/Disposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive.Disposables

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/ICancelable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.Disposables
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/MultipleAssignmentDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 
 namespace System.Reactive.Disposables
 {

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/RefCountDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive.Disposables

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/ScheduledDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Concurrency;
 
 namespace System.Reactive.Disposables

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/SerialDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 
 namespace System.Reactive.Disposables
 {

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/SingleAssignmentDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 
 namespace System.Reactive.Disposables
 {

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Disposables/StableCompositeDisposable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/EnlightenmentProvider.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive.PlatformServices
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/EventPattern.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/EventPatternSource.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal sealed class EventPatternSource<TEventArgs> : EventPatternSourceBase<object, TEventArgs>, IEventPatternSource<TEventArgs>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/EventPatternSourceBase.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/EventSource.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/ExcludeFromCodeCoverageAttribute.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if NO_CODE_COVERAGE_ATTRIBUTE
 
 namespace System.Diagnostics.CodeAnalysis

+ 2 - 0
Rx.NET/Source/src/System.Reactive/ExperimentalAttribute.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/GlobalSuppressions.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 // This file is used by Code Analysis to maintain SuppressMessage 
 // attributes that are applied to this project.
 // Project-level suppressions either have no target or are given 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/IEventPattern.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/IEventPatternSource.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/IEventSource.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/IObserver.Result.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/AnonymousEnumerable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections;
 using System.Collections.Generic;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/AsyncLockObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Concurrency;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/AutoDetachObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Disposables;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/BinaryObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal sealed class BinaryObserver<TLeft, TRight> : IObserver<Either<Notification<TLeft>, Notification<TRight>>>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/CheckedObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Threading;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ConcatSink.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Constants.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     // We can't make those based on the Strings_Core.resx file, because the ObsoleteAttribute needs a compile-time constant.

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/CurrentPlatformEnlightenmentProvider.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 //
 // WARNING: The full namespace-qualified type name should stay the same for the discovery in System.Reactive.Core to work!
 //

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Either.Generic.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Globalization;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ExceptionHelper.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.Default.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Runtime.ExceptionServices;
 
 namespace System.Reactive.PlatformServices

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 using System.Reactive.PlatformServices;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ExceptionServicesImpl.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Runtime.ExceptionServices;
 
 namespace System.Reactive.PlatformServices

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/HalfSerializer.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Diagnostics;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Helpers.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/HostLifecycleNotifications.Windows.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if WINDOWS
 using Windows.ApplicationModel;
 using Windows.ApplicationModel.Core;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/HostLifecycleService.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 using System.Threading;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/IConcatenatable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/IEvaluatableObservable.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal interface IEvaluatableObservable<out T>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ISafeObserver.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     /// <summary>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/IdentitySink.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal abstract class IdentitySink<T> : Sink<T, T>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/ImmutableList.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal sealed class ImmutableList<T>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Lookup.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections;
 using System.Collections.Generic;
 using System.Linq;

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Observers.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 namespace System.Reactive
 {
     internal sealed class NopObserver<T> : IObserver<T>

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/PlatformEnlightenmentProvider.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.ComponentModel;
 
 namespace System.Reactive.PlatformServices

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/PriorityQueue.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Collections.Generic;
 
 namespace System.Reactive

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/Producer.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 using System.Reactive.Concurrency;
 using System.Reactive.Disposables;
 

+ 2 - 0
Rx.NET/Source/src/System.Reactive/Internal/PushPullAdapter.cs

@@ -2,6 +2,8 @@
 // The .NET Foundation licenses this file to you under the MIT License.
 // See the LICENSE file in the project root for more information. 
 
+#nullable disable
+
 #if NO_PERF
 using System.Collections.Generic;
 

部分文件因为文件数量过多而无法显示