|
@@ -31,12 +31,13 @@ namespace Invercargill.DataStructures {
|
|
|
hash_set.set(new KeyValuePair<TKey, TValue>(key, value));
|
|
hash_set.set(new KeyValuePair<TKey, TValue>(key, value));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public bool remove (TKey key, out TValue? value) {
|
|
|
|
|
|
|
+ public bool remove (TKey key, out TValue? value = null) {
|
|
|
var result = hash_set.remove (new KeyValuePair<TKey, TValue>(key, null));
|
|
var result = hash_set.remove (new KeyValuePair<TKey, TValue>(key, null));
|
|
|
if(result != null) {
|
|
if(result != null) {
|
|
|
value = result.value;
|
|
value = result.value;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
+ value = null;
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|