diff --git a/PolyShim/NamespaceDummies.cs b/PolyShim/NamespaceDummies.cs
index c05cc61..4bf079e 100644
--- a/PolyShim/NamespaceDummies.cs
+++ b/PolyShim/NamespaceDummies.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-// ReSharper disable RedundantUsingDirective
+// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart
diff --git a/PolyShim/Net50/DynamicallyAccessedMemberTypes.cs b/PolyShim/Net50/DynamicallyAccessedMemberTypes.cs
index e4cfa54..0a4b259 100644
--- a/PolyShim/Net50/DynamicallyAccessedMemberTypes.cs
+++ b/PolyShim/Net50/DynamicallyAccessedMemberTypes.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
@@ -29,6 +26,6 @@ internal enum DynamicallyAccessedMemberTypes
NonPublicProperties = 1024,
PublicEvents = 2048,
NonPublicEvents = 4096,
- Interfaces = 8192
+ Interfaces = 8192,
}
#endif
diff --git a/PolyShim/Net50/DynamicallyAccessedMembersAttribute.cs b/PolyShim/Net50/DynamicallyAccessedMembersAttribute.cs
index f9a5b55..4e112e8 100644
--- a/PolyShim/Net50/DynamicallyAccessedMembersAttribute.cs
+++ b/PolyShim/Net50/DynamicallyAccessedMembersAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/Environment.cs b/PolyShim/Net50/Environment.cs
index 9942d5d..4620fdf 100644
--- a/PolyShim/Net50/Environment.cs
+++ b/PolyShim/Net50/Environment.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
@@ -15,7 +12,7 @@ internal static partial class PolyfillExtensions
{
extension(Environment)
{
-// No Process class in .NET Standard 1.x
+ // No Process class in .NET Standard 1.x
#if !NETSTANDARD || NETSTANDARD2_0_OR_GREATER
// https://learn.microsoft.com/dotnet/api/system.environment.processid
public static int ProcessId
@@ -29,4 +26,4 @@ public static int ProcessId
#endif
}
}
-#endif
\ No newline at end of file
+#endif
diff --git a/PolyShim/Net50/HttpClient.cs b/PolyShim/Net50/HttpClient.cs
index fa57001..911ac2c 100644
--- a/PolyShim/Net50/HttpClient.cs
+++ b/PolyShim/Net50/HttpClient.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if FEATURE_HTTPCLIENT
+#if FEATURE_HTTPCLIENT
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
diff --git a/PolyShim/Net50/HttpContent.cs b/PolyShim/Net50/HttpContent.cs
index c019569..267c1ba 100644
--- a/PolyShim/Net50/HttpContent.cs
+++ b/PolyShim/Net50/HttpContent.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if FEATURE_HTTPCLIENT
+#if FEATURE_HTTPCLIENT
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
diff --git a/PolyShim/Net50/IsExternalInit.cs b/PolyShim/Net50/IsExternalInit.cs
index c713720..c9c0ae6 100644
--- a/PolyShim/Net50/IsExternalInit.cs
+++ b/PolyShim/Net50/IsExternalInit.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/MemberNotNullAttribute.cs b/PolyShim/Net50/MemberNotNullAttribute.cs
index 97fc3f5..54322fa 100644
--- a/PolyShim/Net50/MemberNotNullAttribute.cs
+++ b/PolyShim/Net50/MemberNotNullAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/MemberNotNullWhenAttribute.cs b/PolyShim/Net50/MemberNotNullWhenAttribute.cs
index ee524f6..cc5d160 100644
--- a/PolyShim/Net50/MemberNotNullWhenAttribute.cs
+++ b/PolyShim/Net50/MemberNotNullWhenAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/ModuleInitializerAttribute.cs b/PolyShim/Net50/ModuleInitializerAttribute.cs
index 760edac..d15fbd6 100644
--- a/PolyShim/Net50/ModuleInitializerAttribute.cs
+++ b/PolyShim/Net50/ModuleInitializerAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/OSPlatformAttribute.cs b/PolyShim/Net50/OSPlatformAttribute.cs
index 0a270a5..c3b816f 100644
--- a/PolyShim/Net50/OSPlatformAttribute.cs
+++ b/PolyShim/Net50/OSPlatformAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/OperatingSystem.cs b/PolyShim/Net50/OperatingSystem.cs
index fe98369..74f6d61 100644
--- a/PolyShim/Net50/OperatingSystem.cs
+++ b/PolyShim/Net50/OperatingSystem.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
@@ -15,7 +12,7 @@ internal static partial class PolyfillExtensions
{
extension(OperatingSystem)
{
-// Can only detect the platform on .NET Standard 1.3+
+ // Can only detect the platform on .NET Standard 1.3+
#if !NETSTANDARD || NETSTANDARD1_3_OR_GREATER
// https://learn.microsoft.com/dotnet/api/system.operatingsystem.isfreebsd
public static bool IsFreeBSD() => RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD);
@@ -29,7 +26,7 @@ internal static partial class PolyfillExtensions
// https://learn.microsoft.com/dotnet/api/system.operatingsystem.iswindows
public static bool IsWindows() => RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
-// Can only detect OS version on .NET Standard 2.0+ and .NET Core 2.0
+ // Can only detect OS version on .NET Standard 2.0+ and .NET Core 2.0
#if (!NETSTANDARD || NETSTANDARD2_0_OR_GREATER) && (!NETCOREAPP || NETCOREAPP2_0_OR_GREATER)
// https://learn.microsoft.com/dotnet/api/system.operatingsystem.iswindowsversionatleast
public static bool IsWindowsVersionAtLeast(int major, int minor = 0, int build = 0, int revision = 0)
@@ -54,4 +51,4 @@ public static bool IsWindowsVersionAtLeast(int major, int minor = 0, int build =
#endif
}
}
-#endif
\ No newline at end of file
+#endif
diff --git a/PolyShim/Net50/Process.cs b/PolyShim/Net50/Process.cs
index 7a8b28c..c7ce48c 100644
--- a/PolyShim/Net50/Process.cs
+++ b/PolyShim/Net50/Process.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if FEATURE_PROCESS
+#if FEATURE_PROCESS
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
diff --git a/PolyShim/Net50/RequiresUnreferencedCodeAttribute.cs b/PolyShim/Net50/RequiresUnreferencedCodeAttribute.cs
index c4a176c..c127fa8 100644
--- a/PolyShim/Net50/RequiresUnreferencedCodeAttribute.cs
+++ b/PolyShim/Net50/RequiresUnreferencedCodeAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/SkipLocalsInitAttribute.cs b/PolyShim/Net50/SkipLocalsInitAttribute.cs
index b20a331..7fd914a 100644
--- a/PolyShim/Net50/SkipLocalsInitAttribute.cs
+++ b/PolyShim/Net50/SkipLocalsInitAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/SupportedOSPlatformAttribute.cs b/PolyShim/Net50/SupportedOSPlatformAttribute.cs
index 4ba88e7..6e15f58 100644
--- a/PolyShim/Net50/SupportedOSPlatformAttribute.cs
+++ b/PolyShim/Net50/SupportedOSPlatformAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/TargetPlatformAttribute.cs b/PolyShim/Net50/TargetPlatformAttribute.cs
index 5eceff8..2de6acf 100644
--- a/PolyShim/Net50/TargetPlatformAttribute.cs
+++ b/PolyShim/Net50/TargetPlatformAttribute.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
+#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
diff --git a/PolyShim/Net50/TaskCompletionSource.cs b/PolyShim/Net50/TaskCompletionSource.cs
index 526bf79..3e4e564 100644
--- a/PolyShim/Net50/TaskCompletionSource.cs
+++ b/PolyShim/Net50/TaskCompletionSource.cs
@@ -1,7 +1,4 @@
-// The following comment is required to instruct analyzers to skip this file
-//
-
-#if FEATURE_TASK
+#if FEATURE_TASK
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable
// ReSharper disable RedundantUsingDirective
@@ -19,17 +16,14 @@ internal class TaskCompletionSource(object? state, TaskCreationOptions creationO
{
private readonly TaskCompletionSource