diff --git a/PolyShim/NetCore10/CallerFilePathAttribute.cs b/PolyShim/NetCore10/CallerFilePathAttribute.cs new file mode 100644 index 0000000..fe86956 --- /dev/null +++ b/PolyShim/NetCore10/CallerFilePathAttribute.cs @@ -0,0 +1,16 @@ +#if (NETFRAMEWORK && !NET45_OR_GREATER) +#nullable enable +// ReSharper disable RedundantUsingDirective +// ReSharper disable CheckNamespace +// ReSharper disable InconsistentNaming +// ReSharper disable PartialTypeWithSinglePart + +using System.Diagnostics.CodeAnalysis; + +namespace System.Runtime.CompilerServices; + +// https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callerfilepathattribute +[AttributeUsage(AttributeTargets.Parameter)] +[ExcludeFromCodeCoverage] +internal class CallerFilePathAttribute : Attribute; +#endif diff --git a/PolyShim/NetCore10/CallerLineNumberAttribute.cs b/PolyShim/NetCore10/CallerLineNumberAttribute.cs new file mode 100644 index 0000000..f084ac5 --- /dev/null +++ b/PolyShim/NetCore10/CallerLineNumberAttribute.cs @@ -0,0 +1,16 @@ +#if (NETFRAMEWORK && !NET45_OR_GREATER) +#nullable enable +// ReSharper disable RedundantUsingDirective +// ReSharper disable CheckNamespace +// ReSharper disable InconsistentNaming +// ReSharper disable PartialTypeWithSinglePart + +using System.Diagnostics.CodeAnalysis; + +namespace System.Runtime.CompilerServices; + +// https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callerlinenumberattribute +[AttributeUsage(AttributeTargets.Parameter)] +[ExcludeFromCodeCoverage] +internal class CallerLineNumberAttribute : Attribute; +#endif diff --git a/PolyShim/NetCore10/CallerMemberNameAttribute.cs b/PolyShim/NetCore10/CallerMemberNameAttribute.cs new file mode 100644 index 0000000..c911b5e --- /dev/null +++ b/PolyShim/NetCore10/CallerMemberNameAttribute.cs @@ -0,0 +1,16 @@ +#if (NETFRAMEWORK && !NET45_OR_GREATER) +#nullable enable +// ReSharper disable RedundantUsingDirective +// ReSharper disable CheckNamespace +// ReSharper disable InconsistentNaming +// ReSharper disable PartialTypeWithSinglePart + +using System.Diagnostics.CodeAnalysis; + +namespace System.Runtime.CompilerServices; + +// https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callermembernameattribute +[AttributeUsage(AttributeTargets.Parameter)] +[ExcludeFromCodeCoverage] +internal class CallerMemberNameAttribute : Attribute; +#endif diff --git a/PolyShim/Signatures.md b/PolyShim/Signatures.md index d0be211..71c19e0 100644 --- a/PolyShim/Signatures.md +++ b/PolyShim/Signatures.md @@ -1,7 +1,7 @@ # Signatures -- **Total:** 330 -- **Types:** 71 +- **Total:** 333 +- **Types:** 74 - **Members:** 259 ___ @@ -26,6 +26,12 @@ ___ - [`bool TryParse(string, IFormatProvider?, out byte)`](https://learn.microsoft.com/dotnet/api/system.byte.tryparse#system-byte-tryparse(system-string-system-iformatprovider-system-byte@)) .NET 7.0 - `CallerArgumentExpressionAttribute` - [**[class]**](https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callerargumentexpressionattribute) .NET Core 3.0 +- `CallerFilePathAttribute` + - [**[class]**](https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callerfilepathattribute) .NET Core 1.0 +- `CallerLineNumberAttribute` + - [**[class]**](https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callerlinenumberattribute) .NET Core 1.0 +- `CallerMemberNameAttribute` + - [**[class]**](https://learn.microsoft.com/dotnet/api/system.runtime.compilerservices.callermembernameattribute) .NET Core 1.0 - `CancellationTokenSource` - [`Task CancelAsync()`](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtokensource.cancelasync) .NET 8.0 - `CompilerFeatureRequiredAttribute`