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
/// Gets the list of elements associated with the specified key.
98
+
/// If the key does not exist, returns an empty element list.
99
+
/// </remarks>
100
+
/// <param name="key">要查找的键,不能为 null / The key to look up, cannot be null.</param>
101
+
/// <returns>与指定键关联的元素列表,如果键不存在,返回空列表 / The list of elements associated with the specified key; returns an empty list if the key does not exist.</returns>
102
+
/// <exception cref="ArgumentNullException">当 <paramref name="key"/> 为 null 时抛出 / Thrown when <paramref name="key"/> is null.</exception>
87
103
publicList<TElement>this[TKeykey]
88
104
{
89
105
get
@@ -96,7 +112,10 @@ public List<TElement> this[TKey key]
/// Returns an enumerator that can iterate through each element list in the collection.
117
+
/// </remarks>
118
+
/// <returns>一个 <see cref="IEnumerator{T}"/> 枚举器,用于遍历集合中的每个元素列表 / An <see cref="IEnumerator{T}"/> enumerator for iterating through each element list in the collection.</returns>
100
119
publicIEnumerator<List<TElement>>GetEnumerator()
101
120
{
102
121
return_dictionary.Values.GetEnumerator();
@@ -105,7 +124,10 @@ public IEnumerator<List<TElement>> GetEnumerator()
/// Returns a non-generic enumerator that can iterate through each element list in the collection.
129
+
/// </remarks>
130
+
/// <returns>一个 <see cref="IEnumerator"/> 枚举器,用于遍历集合中的每个元素列表 / An <see cref="IEnumerator"/> enumerator for iterating through each element list in the collection.</returns>
/// Determines whether the collection contains the specified key.
141
+
/// </remarks>
142
+
/// <param name="key">要检查的键,不能为 null / The key to check, cannot be null.</param>
143
+
/// <returns>如果集合中包含指定的键,则返回 <c>true</c>;否则返回 <c>false</c> / <c>true</c> if the collection contains the specified key; otherwise, <c>false</c>.</returns>
144
+
/// <exception cref="ArgumentNullException">当 <paramref name="key"/> 为 null 时抛出 / Thrown when <paramref name="key"/> is null.</exception>
/// Compares the current object with another object.
85
+
/// </remarks>
86
+
/// <param name="value">要比较的对象 / The object to compare with.</param>
87
+
/// <returns>一个整数,指示当前对象与 <paramref name="value" /> 的相对顺序 / An integer indicating the relative order of the current object and <paramref name="value" />.</returns>
88
+
/// <exception cref="ArgumentException">当 Item 为 null 且无法进行比较时抛出 / Thrown when Item is null and cannot be compared.</exception>
73
89
publicintCompareTo(objectvalue)
74
90
{
75
91
if(valueisnull)
@@ -113,9 +129,12 @@ public int CompareTo(object value)
/// Compares the current object with another object of the same type.
134
+
/// </remarks>
135
+
/// <param name="other">要比较的对象 / The object to compare with.</param>
136
+
/// <returns>一个整数,指示当前对象与 <paramref name="other" /> 的相对顺序 / An integer indicating the relative order of the current object and <paramref name="other" />.</returns>
137
+
/// <exception cref="ArgumentException">当 Item 为 null 且无法进行比较时抛出 / Thrown when Item is null and cannot be compared.</exception>
119
138
publicintCompareTo(Tother)
120
139
{
121
140
if(Itemisnull&&otherisnull)
@@ -144,8 +163,11 @@ public int CompareTo(T other)
0 commit comments