Skip to content

Commit b3aee48

Browse files
committed
Add comment about why a custom HeaderEntry type is used
1 parent 468cf3d commit b3aee48

File tree

1 file changed

+4
-1
lines changed
  • src/libraries/System.Net.Http/src/System/Net/Http/Headers

1 file changed

+4
-1
lines changed

src/libraries/System.Net.Http/src/System/Net/Http/Headers/HttpHeaders.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
namespace System.Net.Http.Headers
1313
{
14-
/// <summary>Key/value pairs of headers. The value is either a raw <see cref="string"/> or a <see cref="HttpHeaders.HeaderStoreItemInfo"/>.</summary>
14+
/// <summary>
15+
/// Key/value pairs of headers. The value is either a raw <see cref="string"/> or a <see cref="HttpHeaders.HeaderStoreItemInfo"/>.
16+
/// We're using a custom type instead of <see cref="KeyValuePair{TKey, TValue}"/> because we need ref access to fields.
17+
/// </summary>
1518
internal struct HeaderEntry
1619
{
1720
public HeaderDescriptor Key;

0 commit comments

Comments
 (0)