mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-07 19:18:19 +02:00
GetValueAlt
This commit is contained in:
parent
9e9b170548
commit
bbf057a59c
1 changed files with 7 additions and 0 deletions
|
@ -269,6 +269,13 @@ namespace System.Collections
|
||||||
return .Err;
|
return .Err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Result<TValue> GetValueAlt<TAltKey>(TAltKey key) where TAltKey : IHashable where bool : operator TKey == TAltKey
|
||||||
|
{
|
||||||
|
int_cosize i = (int_cosize)FindEntryAlt(key);
|
||||||
|
if (i >= 0) return mEntries[i].mValue;
|
||||||
|
return .Err;
|
||||||
|
}
|
||||||
|
|
||||||
public void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
if (mCount > 0)
|
if (mCount > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue