示例#1
0
 public DictionaryULong(DictionaryULong <TValue> dictionary, IEqualityComparer <TKey> comparer) :
     this(dictionary != null? dictionary.Count: 0, comparer)
 {
     foreach (KeyValuePair <TKey, TValue> pair in dictionary)
     {
         Add(pair.Key, pair.Value);
     }
 }
示例#2
0
 public void CopyFrom(DictionaryULong <TValue> other)
 {
     ArrayUtils.Copy(other.buckets, ref this.buckets);
     ArrayUtils.Copy(other.entries, ref this.entries);
     this.count     = other.count;
     this.version   = other.version;
     this.freeList  = other.freeList;
     this.freeCount = other.freeCount;
 }
示例#3
0
 public void CopyFrom <TCopy>(DictionaryULong <TValue> other, TCopy copy) where TCopy : IArrayElementCopy <TValue>
 {
     ArrayUtils.Copy(other.buckets, ref this.buckets);
     ArrayUtils.Copy(other.entries, ref this.entries, new EntryCopy <TCopy>()
     {
         copy = copy
     });
     this.count     = other.count;
     this.version   = other.version;
     this.freeList  = other.freeList;
     this.freeCount = other.freeCount;
 }
示例#4
0
 public DictionaryULong(DictionaryULong <TValue> dictionary) : this(dictionary, null)
 {
 }