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
/// Initializes a new instance of the <see cref="BidirectionalDictionary{TKey, TValue}" /> class.
64
+
/// Setting a reasonable initial capacity can avoid frequent internal expansion and improve performance.
61
65
/// </remarks>
66
+
/// <param name="initialCapacity">初始容量,用于预分配内部字典的空间,默认值为 8,必须大于等于 0 / The initial capacity used to pre-allocate space for the internal dictionaries, defaults to 8, must be greater than or equal to 0.</param>
67
+
/// <exception cref="ArgumentOutOfRangeException">当 <paramref name="initialCapacity"/> 小于 0 时抛出 / Thrown when <paramref name="initialCapacity"/> is less than 0.</exception>
/// Tries to get the key associated with the specified value.
80
+
/// This operation has a time complexity of O(1).
78
81
/// </remarks>
82
+
/// <param name="value">要查找的值,不能为 null(如果 TValue 是引用类型) / The value to find, cannot be null if TValue is a reference type.</param>
83
+
/// <param name="key">查找到的键。如果未找到对应的键,将设置为默认值 / The found key, will be set to the default value if no corresponding key is found.</param>
84
+
/// <returns>如果成功找到键,则为 <c>true</c>;否则为 <c>false</c> / <c>true</c> if the key is found; otherwise, <c>false</c>.</returns>
85
+
/// <exception cref="ArgumentNullException">当 <paramref name="value"/> 为 null 且 TValue 是引用类型时抛出 / Thrown when <paramref name="value"/> is null and TValue is a reference type.</exception>
/// Tries to get the value associated with the specified key.
97
+
/// This operation has a time complexity of O(1).
94
98
/// </remarks>
99
+
/// <param name="key">要查找的键,不能为 null(如果 TKey 是引用类型) / The key to find, cannot be null if TKey is a reference type.</param>
100
+
/// <param name="value">查找到的值。如果未找到对应的值,将设置为默认值 / The found value, will be set to the default value if no corresponding value is found.</param>
101
+
/// <returns>如果成功找到值,则为 <c>true</c>;否则为 <c>false</c> / <c>true</c> if the value is found; otherwise, <c>false</c>.</returns>
102
+
/// <exception cref="ArgumentNullException">当 <paramref name="key"/> 为 null 且 TKey 是引用类型时抛出 / Thrown when <paramref name="key"/> is null and TKey is a reference type.</exception>
/// Tries to add a key-value pair to the bidirectional dictionary.
128
+
/// If the key or value already exists, the addition fails and returns false.
129
+
/// When successfully added, both forward and reverse mappings are updated.
130
+
/// This operation has a time complexity of O(1).
125
131
/// </remarks>
132
+
/// <param name="key">要添加的键,不能为 null(如果 TKey 是引用类型) / The key to add, cannot be null if TKey is a reference type.</param>
133
+
/// <param name="value">要添加的值,不能为 null(如果 TValue 是引用类型) / The value to add, cannot be null if TValue is a reference type.</param>
134
+
/// <returns>如果成功添加键值对,则为 <c>true</c>;否则为 <c>false</c> / <c>true</c> if the key-value pair was added; otherwise, <c>false</c>.</returns>
135
+
/// <exception cref="ArgumentNullException">当 <paramref name="key"/> 或 <paramref name="value"/> 为 null 且对应类型是引用类型时抛出 / Thrown when <paramref name="key"/> or <paramref name="value"/> is null and the corresponding type is a reference type.</exception>
/// <param name="key">要移除的键,不能为 null(如果 TKey 是引用类型) / The key to remove, cannot be null if TKey is a reference type.</param>
157
+
/// <param name="value">查找到的值。如果未找到对应的值,将设置为默认值 / The found value, will be set to the default value if no corresponding value is found.</param>
158
+
/// <returns>如果成功找到值并移除键值对,则为 <c>true</c>;否则为 <c>false</c> / <c>true</c> if the value was found and the key-value pair was removed; otherwise, <c>false</c>.</returns>
/// <param name="value">要移除的值,不能为 null(如果 TValue 是引用类型) / The value to remove, cannot be null if TValue is a reference type.</param>
178
+
/// <param name="key">查找到的键。如果未找到对应的值,将设置为默认值 / The found key, will be set to the default value if no corresponding value is found.</param>
179
+
/// <returns>如果成功找到值并移除键值对,则为 <c>true</c>;否则为 <c>false</c> / <c>true</c> if the value was found and the key-value pair was removed; otherwise, <c>false</c>.</returns>
0 commit comments