You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <returns><see langword="true"/> if removes successfully; otherwise, <see langword="false"/>.</returns>
39
39
boolRemove(TKeykey,TElementelement);
40
40
/// <summary>
41
-
/// Clear the <see cref="ILookup{TKey, TElement}"/>.
41
+
/// Clear the <see cref="IMutableLookup{TKey, TElement}"/>.
42
42
/// </summary>
43
43
voidClear();
44
44
/// <summary>
45
45
/// Gets the <see cref="IEnumerable{T}"/> sequence of values by a specified key.
46
46
/// </summary>
47
47
/// <param name="key">The specified key.</param>
48
48
/// <param name="elements">When this method returns, contains the elements associated with the specified key, if the key is found; otherwise, <see langword="null"/>. This parameter is passed uninitialized.</param>
49
-
/// <returns><see langword="true"/> if the <see cref="ILookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
49
+
/// <returns><see langword="true"/> if the <see cref="IMutableLookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
@@ -172,7 +170,7 @@ public void Add(TKey key,TElement element)
172
170
{
173
171
dic[key]=newGrouping(key);
174
172
}
175
-
dic[key].Add(element);
173
+
dic[key].AddElement(element);
176
174
}
177
175
/// <summary>
178
176
/// Removes the specified key and its elements.
@@ -193,7 +191,7 @@ public bool Remove(TKey key, TElement element)
193
191
{
194
192
if(dic.ContainsKey(key))
195
193
{
196
-
returndic[key].Remove(element);
194
+
returndic[key].RemoveElement(element);
197
195
}
198
196
else
199
197
{
@@ -207,15 +205,15 @@ public bool Remove(TKey key, TElement element)
207
205
/// <returns><see langword="true"/> if <paramref name="key"/> is in the <see cref="Lookup{TKey, TElement}"/>; otherwise, <see langword="false"/>.</returns>
/// Clear the <see cref="ILookup{TKey, TElement}"/>.
208
+
/// Clear the <see cref="IMutableLookup{TKey, TElement}"/>.
211
209
/// </summary>
212
210
publicvoidClear()=>dic.Clear();
213
211
/// <summary>
214
-
/// Gets the <see cref="ICollection{T}"/> sequence of values by a specified key.
212
+
/// Gets the <see cref="IEnumerable{T}"/> sequence of values by a specified key.
215
213
/// </summary>
216
214
/// <param name="key">The specified key.</param>
217
215
/// <param name="elements">When this method returns, contains the elements associated with the specified key, if the key is found; otherwise, <see langword="null"/>. This parameter is passed uninitialized.</param>
218
-
/// <returns><see langword="true"/> if the <see cref="ILookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
216
+
/// <returns><see langword="true"/> if the <see cref="IMutableLookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
@@ -227,8 +225,8 @@ public bool TryGetElements(TKey key, out ICollection<TElement> elements)
227
225
/// </summary>
228
226
/// <param name="key">The specified key.</param>
229
227
/// <param name="elements">When this method returns, contains the elements associated with the specified key, if the key is found; otherwise, <see langword="null"/>. This parameter is passed uninitialized.</param>
230
-
/// <returns><see langword="true"/> if the <see cref="ILookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
/// <returns><see langword="true"/> if the <see cref="IMutableLookup{TKey, TElement}"/> contains elements with the specified key; otherwise, <see langword="false"/>.</returns>
0 commit comments