Skip to content

Commit cf515e6

Browse files
committed
Added WeakRefMessenger type
1 parent 89efbea commit cf515e6

File tree

3 files changed

+493
-2
lines changed

3 files changed

+493
-2
lines changed

Microsoft.Toolkit.Mvvm/Messaging/Microsoft.Collections.Extensions/DictionarySlim{TKey,TValue}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void Clear()
130130
this.entries = InitialEntries;
131131
}
132132

133-
/// <inheritdoc cref="Dictionary{TKey,TValue}.ContainsKey"/>
133+
/// <inheritdoc/>
134134
public bool ContainsKey(TKey key)
135135
{
136136
Entry[] entries = this.entries;

Microsoft.Toolkit.Mvvm/Messaging/Microsoft.Collections.Extensions/IDictionarySlim{TKey}.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ namespace Microsoft.Collections.Extensions
1313
internal interface IDictionarySlim<in TKey> : IDictionarySlim
1414
where TKey : IEquatable<TKey>
1515
{
16+
/// <summary>
17+
/// Checks whether or not the dictionary contains a pair with a specified key.
18+
/// </summary>
19+
/// <param name="key">The key to look for.</param>
20+
/// <returns>Whether or not the key was present in the dictionary.</returns>
21+
public bool ContainsKey(TKey key);
22+
1623
/// <summary>
1724
/// Tries to remove a value with a specified key.
1825
/// </summary>
1926
/// <param name="key">The key of the value to remove.</param>
2027
/// <param name="result">The removed value, if it was present.</param>
21-
/// <returns>.Whether or not the key was present.</returns>
28+
/// <returns>Whether or not the key was present.</returns>
2229
bool TryRemove(TKey key, out object? result);
2330

2431
/// <summary>

0 commit comments

Comments
 (0)