mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Add copy constructor to Dictionary class
This commit is contained in:
parent
9ce0cc217a
commit
cd065bd8bd
1 changed files with 7 additions and 1 deletions
|
@ -48,7 +48,13 @@ namespace System.Collections
|
|||
//if (capacity < 0) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.capacity);
|
||||
if (capacity > 0) Initialize(capacity);
|
||||
//TODO: this.comparer = comparer ?? EqualityComparer<TKey>.Default;
|
||||
}
|
||||
}
|
||||
|
||||
public this(IEnumerator<KeyValuePair> enumerator)
|
||||
{
|
||||
for (var kv in enumerator)
|
||||
this[kv.key] = kv.value;
|
||||
}
|
||||
|
||||
public ~this()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue