Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Ramstack.HtmxToolkit/Collections/SmallDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public TValue this[TKey key]
}
set
{
var items = _items;
var index = IndexOf(key);
var items = _items;

if ((uint)index < (uint)items.Length)
{
Expand Down Expand Up @@ -241,8 +241,8 @@ void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[]
/// <inherited />
bool ICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue> item)
{
var items = _items;
var index = IndexOf(item.Key);
var items = _items;

if ((uint)index >= (uint)items.Length)
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public DictionaryEntry[] Items
/// <summary>
/// Represents a class that contains the key/value pairs of the dictionary entry for displaying by a debugger.
/// </summary>
/// <param name="key">The value of the entry.</param>
/// <param name="key">The key of the entry.</param>
/// <param name="value">The value of the entry.</param>
[DebuggerDisplay("{Value}", Name = "[{Key}]")]
public readonly struct DictionaryEntry(TKey key, TValue value)
{
Expand Down
Loading