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 an enumerator that iterates through the collection.
12
+
/// </summary>
13
+
/// <returns>
14
+
/// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection.
15
+
/// </returns>
16
+
publicIEnumerator<T>GetEnumerator()
17
+
{
18
+
return_dictionary.Keys.GetEnumerator();
19
+
}
20
+
21
+
/// <summary>
22
+
/// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1"/>.
23
+
/// </summary>
24
+
/// <returns>
25
+
/// true if <paramref name="item"/> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1"/>.
26
+
/// </returns>
27
+
/// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param><exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only.</exception>
28
+
publicboolRemove(Titem)
29
+
{
30
+
returnTryRemove(item);
31
+
}
32
+
33
+
/// <summary>
34
+
/// Gets the number of elements in the set.
35
+
/// </summary>
36
+
publicintCount=>_dictionary.Count;
37
+
38
+
/// <summary>
39
+
/// Adds an element to the current set and returns a value to indicate if the element was successfully added.
40
+
/// </summary>
41
+
/// <returns>
42
+
/// true if the element is added to the set; false if the element is already in the set.
43
+
/// </returns>
44
+
/// <param name="item">The element to add to the set.</param>
0 commit comments