-
-
Notifications
You must be signed in to change notification settings - Fork 784
Expand file tree
/
Copy pathQueryMapEntrySink.cs
More file actions
17 lines (14 loc) · 806 Bytes
/
Copy pathQueryMapEntrySink.cs
File metadata and controls
17 lines (14 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved.
// ReactiveUI and Contributors licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using System.Runtime.CompilerServices;
namespace Refit;
/// <summary>Appends formatted enumerable values as <see cref="QueryMapEntry"/> items under a fixed key.</summary>
/// <param name="Entries">The list receiving the entries.</param>
/// <param name="Key">The query key applied to every appended value.</param>
internal readonly record struct QueryMapEntrySink(List<QueryMapEntry> Entries, string Key) : IQueryValueSink
{
/// <inheritdoc/>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Add(string? value) => Entries.Add(new(Key, value));
}