瀏覽代碼

Merge pull request #1337 from dotnet/dev/bartde/rx_nullable_step1

Enable nullable in a few files.
Bart J.F. De Smet 5 年之前
父節點
當前提交
346807e872
共有 39 個文件被更改,包括 6 次插入86 次删除
  1. 0 2
      Rx.NET/Source/src/System.Reactive/AnonymousObservable.cs
  2. 0 2
      Rx.NET/Source/src/System.Reactive/AnonymousObserver.cs
  3. 0 2
      Rx.NET/Source/src/System.Reactive/Concurrency/IScheduledItem.cs
  4. 0 2
      Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatch.cs
  5. 0 2
      Rx.NET/Source/src/System.Reactive/Concurrency/IStopwatchProvider.cs
  6. 0 2
      Rx.NET/Source/src/System.Reactive/Concurrency/Thread.Stub.cs
  7. 0 2
      Rx.NET/Source/src/System.Reactive/Disposables/ICancelable.cs
  8. 0 2
      Rx.NET/Source/src/System.Reactive/EnlightenmentProvider.cs
  9. 0 2
      Rx.NET/Source/src/System.Reactive/ExcludeFromCodeCoverageAttribute.cs
  10. 1 3
      Rx.NET/Source/src/System.Reactive/ExperimentalAttribute.cs
  11. 0 2
      Rx.NET/Source/src/System.Reactive/GlobalSuppressions.cs
  12. 0 2
      Rx.NET/Source/src/System.Reactive/IEventPattern.cs
  13. 0 2
      Rx.NET/Source/src/System.Reactive/IEventPatternSource.cs
  14. 0 2
      Rx.NET/Source/src/System.Reactive/IEventSource.cs
  15. 1 3
      Rx.NET/Source/src/System.Reactive/IObserver.Result.cs
  16. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/Constants.cs
  17. 1 3
      Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.Default.cs
  18. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/Helpers.cs
  19. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/IConcatenatable.cs
  20. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/IEvaluatableObservable.cs
  21. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/ISafeObserver.cs
  22. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/IdentitySink.cs
  23. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/StopwatchImpl.cs
  24. 0 2
      Rx.NET/Source/src/System.Reactive/Internal/Stubs.cs
  25. 0 2
      Rx.NET/Source/src/System.Reactive/Linq/IGroupedObservable.cs
  26. 1 3
      Rx.NET/Source/src/System.Reactive/Linq/IQbservable.cs
  27. 1 3
      Rx.NET/Source/src/System.Reactive/Linq/IQbservableProvider.cs
  28. 1 3
      Rx.NET/Source/src/System.Reactive/Linq/QueryDebugger.cs
  29. 0 2
      Rx.NET/Source/src/System.Reactive/Linq/QueryLanguage_.cs
  30. 0 2
      Rx.NET/Source/src/System.Reactive/NamespaceDocs.cs
  31. 0 2
      Rx.NET/Source/src/System.Reactive/ObservableBase.cs
  32. 0 2
      Rx.NET/Source/src/System.Reactive/Observer.Extensions.cs
  33. 0 2
      Rx.NET/Source/src/System.Reactive/ObserverBase.cs
  34. 0 2
      Rx.NET/Source/src/System.Reactive/Platforms/Desktop/Internal/Constants.cs
  35. 0 4
      Rx.NET/Source/src/System.Reactive/Properties/InternalsVisibleTo.cs
  36. 0 2
      Rx.NET/Source/src/System.Reactive/Subjects/IConnectableObservable.cs
  37. 0 2
      Rx.NET/Source/src/System.Reactive/Subjects/ISubject.Multi.cs
  38. 0 2
      Rx.NET/Source/src/System.Reactive/Subjects/ISubject.cs
  39. 0 2
      Rx.NET/Source/src/System.Reactive/Threading/Tasks/NamespaceDoc.cs

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

@@ -2,8 +2,6 @@
 // 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

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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
 {
     /*

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

@@ -2,8 +2,6 @@
 // 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;
 

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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

+ 1 - 3
Rx.NET/Source/src/System.Reactive/ExperimentalAttribute.cs

@@ -2,8 +2,6 @@
 // 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>
@@ -13,4 +11,4 @@ namespace System.Reactive
     public sealed class ExperimentalAttribute : Attribute
     {
     }
-}
+}

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

@@ -2,8 +2,6 @@
 // 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 

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

+ 1 - 3
Rx.NET/Source/src/System.Reactive/IObserver.Result.cs

@@ -2,8 +2,6 @@
 // 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>
@@ -39,4 +37,4 @@ namespace System.Reactive
         /// <returns>Result returned upon observation of the sequence completion.</returns>
         TResult OnCompleted();
     }
-}
+}

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

@@ -2,8 +2,6 @@
 // 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.

+ 1 - 3
Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.Default.cs

@@ -2,8 +2,6 @@
 // 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
@@ -17,4 +15,4 @@ namespace System.Reactive.PlatformServices
     {
         public void Rethrow(Exception exception) => ExceptionDispatchInfo.Capture(exception).Throw();
     }
-}
+}

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

@@ -2,8 +2,6 @@
 // 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

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

@@ -2,8 +2,6 @@
 // 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

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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;
 
 namespace System.Reactive.Concurrency

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

@@ -2,8 +2,6 @@
 // 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 static class Stubs<T>

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

@@ -2,8 +2,6 @@
 // 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.Linq
 {
     /// <summary>

+ 1 - 3
Rx.NET/Source/src/System.Reactive/Linq/IQbservable.cs

@@ -1,9 +1,7 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
 // 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.Expressions;
 
 namespace System.Reactive.Linq

+ 1 - 3
Rx.NET/Source/src/System.Reactive/Linq/IQbservableProvider.cs

@@ -1,9 +1,7 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
 // 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.Expressions;
 
 namespace System.Reactive.Linq

+ 1 - 3
Rx.NET/Source/src/System.Reactive/Linq/QueryDebugger.cs

@@ -1,9 +1,7 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
 // 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
-
 // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
 
 //

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

@@ -2,8 +2,6 @@
 // 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.Linq
 {
     internal partial class QueryLanguage : IQueryLanguage

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

@@ -2,8 +2,6 @@
 // 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>

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

@@ -2,8 +2,6 @@
 // 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

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

@@ -2,8 +2,6 @@
 // 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;
 

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

@@ -2,8 +2,6 @@
 // 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

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

@@ -2,8 +2,6 @@
 // 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_WindowsThreading.resx file, because the ObsoleteAttribute needs a compile-time constant.

+ 0 - 4
Rx.NET/Source/src/System.Reactive/Properties/InternalsVisibleTo.cs

@@ -2,9 +2,5 @@
 // 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
-
-
-
 [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Tests.System.Reactive, PublicKey=00240000048000009400000006020000002400005253413100040000010001008f5cff058631087031f8350f30a36fa078027e5df2316b564352dc9eb7af7ce856016d3c5e9d058036fe73bb5c83987bd3fc0793fbe25d633cc4f37c2bd5f1d717cd2a81661bec08f0971dc6078e17bde372b89005e7738a0ebd501b896ca3e8315270ff64df7809dd912c372df61785a5085b3553b7872e39b1b1cc0ff5a6bc")]
 [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Tests.System.Reactive.Uwp.DeviceRunner, PublicKey=00240000048000009400000006020000002400005253413100040000010001008f5cff058631087031f8350f30a36fa078027e5df2316b564352dc9eb7af7ce856016d3c5e9d058036fe73bb5c83987bd3fc0793fbe25d633cc4f37c2bd5f1d717cd2a81661bec08f0971dc6078e17bde372b89005e7738a0ebd501b896ca3e8315270ff64df7809dd912c372df61785a5085b3553b7872e39b1b1cc0ff5a6bc")]

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

@@ -2,8 +2,6 @@
 // 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.Subjects
 {
     /// <summary>

+ 0 - 2
Rx.NET/Source/src/System.Reactive/Subjects/ISubject.Multi.cs

@@ -2,8 +2,6 @@
 // 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.Subjects
 {
     /// <summary>

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

@@ -2,8 +2,6 @@
 // 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.Subjects
 {
     /// <summary>

+ 0 - 2
Rx.NET/Source/src/System.Reactive/Threading/Tasks/NamespaceDoc.cs

@@ -2,8 +2,6 @@
 // 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.Threading.Tasks
 {
     /// <summary>