Skip to content

Commit aaa346e

Browse files
committed
Make polysharp private reference
1 parent 593bbb5 commit aaa346e

File tree

2 files changed

+6
-51
lines changed

2 files changed

+6
-51
lines changed

src/Utf8StringInterpolation/Shims.cs

-51
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,6 @@
33
using System.Buffers.Text;
44
using System.Text;
55

6-
#if !NET6_0_OR_GREATER
7-
namespace System.Runtime.CompilerServices
8-
{
9-
/// <summary>
10-
/// Indicates the attributed type is to be used as an interpolated string handler.
11-
/// </summary>
12-
[global::System.AttributeUsage(
13-
global::System.AttributeTargets.Class |
14-
global::System.AttributeTargets.Struct,
15-
AllowMultiple = false, Inherited = false)]
16-
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
17-
internal sealed class InterpolatedStringHandlerAttribute : global::System.Attribute
18-
{
19-
}
20-
21-
/// <summary>
22-
/// Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
23-
/// </summary>
24-
[global::System.AttributeUsage(global::System.AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
25-
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
26-
internal sealed class InterpolatedStringHandlerArgumentAttribute : global::System.Attribute
27-
{
28-
/// <summary>
29-
/// Initializes a new instance of the <see cref="global::System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute"/> class.
30-
/// </summary>
31-
/// <param name="argument">The name of the argument that should be passed to the handler.</param>
32-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
33-
public InterpolatedStringHandlerArgumentAttribute(string argument)
34-
{
35-
Arguments = new string[] { argument };
36-
}
37-
38-
/// <summary>
39-
/// Initializes a new instance of the <see cref="global::System.Runtime.CompilerServices.InterpolatedStringHandlerArgumentAttribute"/> class.
40-
/// </summary>
41-
/// <param name="arguments">The names of the arguments that should be passed to the handler.</param>
42-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
43-
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
44-
{
45-
Arguments = arguments;
46-
}
47-
48-
/// <summary>
49-
/// Gets the names of the arguments that should be passed to the handler.
50-
/// </summary>
51-
/// <remarks><see langword="null"/> may be used as the name of the receiver in an instance method.</remarks>
52-
public string[] Arguments { get; }
53-
}
54-
}
55-
#endif
56-
576
namespace Utf8StringInterpolation
587
{
598
internal static partial class Shims

src/Utf8StringInterpolation/Utf8StringInterpolation.csproj

+6
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@
3636
</Compile>
3737
</ItemGroup>
3838

39+
<ItemGroup>
40+
<PackageReference Include="PolySharp" Version="1.14.0">
41+
<PrivateAssets>all</PrivateAssets>
42+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
43+
</PackageReference>
44+
</ItemGroup>
3945
</Project>

0 commit comments

Comments
 (0)