Skip to content

Commit 962d114

Browse files
committed
Merged PR 21401: Update formatting in IKeyValuePair generic type
Update formatting in IKeyValuePair generic type. The greater than and less than signs for the generic were not rendering correctly in one of the Remarks paragraphs.
1 parent b1d578b commit 962d114

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

windows.foundation.collections/ikeyvaluepair_2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ public interface IKeyValuePair<K, V> :
1313

1414
Represents a key-value pair. This is typically used as a constraint type when you need to encapsulate two type parameters into one to satisfy the constraints of another generic interface.
1515

16-
> **.NET**
17-
> This interface appears as [System.Collections.Generic.KeyValuePair&lt;TKey,TValue&gt;](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true) (a structure, not an interface). In any case where a Windows Runtime type has implemented IKeyValuePair&lt;K,V&gt;, .NET code can use the APIs of [KeyValuePair](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true) instead.
16+
> [!NOTE]
17+
> In .NET, this interface appears as [System.Collections.Generic.KeyValuePair&lt;TKey,TValue&gt;](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true) (a structure, not an interface). In any case where a Windows Runtime type has implemented IKeyValuePair&lt;K,V&gt;, .NET code can use the APIs of [KeyValuePair](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true) instead.
1818
1919
## -remarks
2020

2121
When programming with .NET, this interface is hidden and developers should use the [System.Collections.Generic.KeyValuePair&lt;TKey,TValue&gt;](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true) structure. In any case where a Windows Runtime type has implemented IKeyValuePair&lt;K,V&gt;, including when interfaces have inherited IKeyValuePair&lt;K,V&gt; or used it as an inner constraint, .NET code can treat it as a .NET [KeyValuePair](/dotnet/api/system.collections.generic.keyvaluepair-2?view=dotnet-uwp-10.0&preserve-view=true).
2222

23-
Key-value pairs are used in the [IMap<K,V>](imap_2.md) interface, when it inherits [IIterable<T>](iiterable_1.md). Practical implementations of [IMap<K,V>](imap_2.md) are iterable, and iterating or calling [First](iiterable_1_first_1920739956.md)/[Current](iiterator_1_current.md) explicitly will return instances of IKeyValuePair&lt;K,V&gt; using the same constraints as does the [IMap<K,V>](imap_2.md) implementation.
23+
Key-value pairs are used in the [IMap&lt;K,V&gt;](imap_2.md) interface, when it inherits [IIterable&lt;T&gt;](iiterable_1.md). Practical implementations of [IMap&lt;K,V&gt;](imap_2.md) are iterable, and iterating or calling [First](iiterable_1_first_1920739956.md)/[Current](iiterator_1_current.md) explicitly will return instances of IKeyValuePair&lt;K,V&gt; using the same constraints as does the [IMap&lt;K,V&gt;](imap_2.md) implementation.
2424

2525
### C++/WinRT extension functions
2626

@@ -47,10 +47,10 @@ is equivalent to,
4747
auto key = kvp.Key();
4848
auto value = kvp.Value();
4949
```
50-
50+
5151
Structured binding is particularly convenient in range-based `for` loops, letting you iterate through the key/value pairs of a map.
5252

53-
```cppwinrt
53+
```cppwinrt
5454
winrt::Windows::Foundation::Collections::IMap<K, V> map;
5555
for (auto&& [key, value] : map) { ... }
5656
```

0 commit comments

Comments
 (0)