Skip to content

Commit c10f5a1

Browse files
committed
Adding more filling types.
1 parent a89dcef commit c10f5a1

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) 2020-2025 SharpCrafters s.r.o. and contributors.
2+
// SharpCrafters s.r.o. licenses this file to you under either the MIT license or a proprietary license, depending on the repository from which it was obtained.
3+
// Refer to LICENSE.md in the repository root for complete details.
4+
5+
#if !NET6_0_OR_GREATER
6+
using JetBrains.Annotations;
7+
8+
// ReSharper disable once CheckNamespace
9+
namespace System.Runtime.CompilerServices;
10+
11+
[PublicAPI]
12+
[AttributeUsage( AttributeTargets.Parameter )]
13+
public sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
14+
{
15+
public InterpolatedStringHandlerArgumentAttribute( string argument )
16+
{
17+
this.Arguments = [argument];
18+
}
19+
20+
public InterpolatedStringHandlerArgumentAttribute( params string[] arguments )
21+
{
22+
this.Arguments = arguments;
23+
}
24+
25+
public string[] Arguments { get; }
26+
}
27+
#endif
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright (c) 2020-2025 SharpCrafters s.r.o. and contributors.
2+
// SharpCrafters s.r.o. licenses this file to you under either the MIT license or a proprietary license, depending on the repository from which it was obtained.
3+
// Refer to LICENSE.md in the repository root for complete details.
4+
5+
#if !NET6_0_OR_GREATER // ReSharper disable once CheckNamespace
6+
namespace System.Runtime.CompilerServices;
7+
8+
[AttributeUsage( AttributeTargets.Class | AttributeTargets.Struct, Inherited = false )]
9+
internal sealed class InterpolatedStringHandlerAttribute : Attribute;
10+
#endif

0 commit comments

Comments
 (0)