Fix StyleCop tuple warnings (dotnet/coreclr#26514)
authorStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 17:57:13 +0000 (13:57 -0400)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2019 17:57:13 +0000 (13:57 -0400)
A few PRs crossed such that PR validation passed but master is issuing lots of warnings-as-errors.

Commit migrated from https://github.com/dotnet/coreclr/commit/e4a84e2b9260388cce41634476dadf12aef39c8a

src/libraries/System.Private.CoreLib/src/System/TupleExtensions.cs
src/libraries/System.Private.CoreLib/src/System/ValueTuple.cs

index 106a88a..58547fc 100644 (file)
@@ -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.
 
+#pragma warning disable SA1141 // explicitly not using tuple syntax in tuple implementation
+
 using System.ComponentModel;
 using System.Runtime.CompilerServices;
 
index 216ef5c..749d172 100644 (file)
@@ -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.
 
+#pragma warning disable SA1141 // explicitly not using tuple syntax in tuple implementation
+
 using System.Collections;
 using System.Collections.Generic;
 using System.Diagnostics;