Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PolyShim/List-Signatures.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ foreach ($file in $codeFiles) {
$typeKind = $match.Groups[1].Value
$typeName = $match.Groups[2].Value

# Skip PolyfillExtensions classes
if ($typeName -match '^PolyfillExtensions\d*$') {
# Skip MemberPolyfills_* classes
if ($typeName -match '^MemberPolyfills_') {
continue
}

Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net100/Random.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Text;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net100_Random
{
extension(Random random)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net100/TimeSpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net100_TimeSpan
{
extension(TimeSpan)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/Convert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_Convert
{
extension(Convert)
{
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net50/DynamicallyAccessedMembersAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_Enum
{
extension(Enum)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_Environment
{
extension(Environment)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/HttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_HttpClient
{
#if FEATURE_TASK
extension(HttpClient httpClient)
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/HttpContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_HttpContent
{
#if FEATURE_TASK
extension(HttpContent httpContent)
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/IntPtr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions2
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_IntPtr
{
extension(IntPtr)
{
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net50/MemberNotNullAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net50/MemberNotNullWhenAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/OperatingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_OperatingSystem
{
extension(OperatingSystem)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/Process.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_Process
{
#if FEATURE_TASK
extension(Process process)
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net50/RequiresUnreferencedCodeAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/TaskCompletionSourceOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_TaskCompletionSourceOfT
{
extension<T>(TaskCompletionSource<T> source)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Reflection;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_Type
{
extension(Type type)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net50/UIntPtr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions3
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net50_UIntPtr
{
extension(UIntPtr)
{
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net50/UnconditionalSuppressMessageAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET5_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/ArgumentNullException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Runtime.CompilerServices;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_ArgumentNullException
{
extension(ArgumentNullException)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
// ReSharper disable PartialTypeWithSinglePart

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace System.Linq;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_EnumerableExtensions
{
extension<T>(IEnumerable<T> source)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_Environment
{
extension(Environment)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_List
{
extension<T>(List<T> list)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/Math.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_Math
{
extension(Math)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/Parallel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_Parallel
{
extension(Parallel)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/Random.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

file static class RandomEx
{
[field: ThreadStatic]
public static Random? Shared { get; set; }
}

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_Random
{
extension(Random random)
{
Expand Down
1 change: 1 addition & 0 deletions PolyShim/Net60/RequiresAssemblyFilesAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#if (NETCOREAPP && !NET6_0_OR_GREATER) || (NETFRAMEWORK) || (NETSTANDARD)
#nullable enable

// ReSharper disable RedundantUsingDirective
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/String.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
// ReSharper disable PartialTypeWithSinglePart

using System;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_String
{
extension(string str)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net60/Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net60_Task
{
extension(Task task)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/ArgumentException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Runtime.CompilerServices;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_ArgumentException
{
extension(ArgumentException)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/Byte.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_Byte
{
extension(byte)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/DateTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_DateTime
{
extension(DateTime)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/DateTimeOffset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_DateTimeOffset
{
extension(DateTimeOffset)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/Decimal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_Decimal
{
extension(decimal)
{
Expand Down
4 changes: 3 additions & 1 deletion PolyShim/Net70/Double.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

using System;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;

internal static partial class PolyfillExtensions
[ExcludeFromCodeCoverage]
internal static class MemberPolyfills_Net70_Double
{
extension(double)
{
Expand Down
Loading