Beispiel #1
0
 internal HeapArray(HeapArray <T, Compare> heap)
 {
     _compare         = heap._compare;
     _heap            = (T[])heap._heap.Clone();
     _minimumCapacity = heap._minimumCapacity;
     _count           = heap._count;
 }
Beispiel #2
0
 internal HeapArray(HeapArray <T, Compare> heap)
 {
     _compare = heap._compare;
     _heap    = new T[heap._heap.Length];
     heap._heap.CopyTo(_heap);
     _minimumCapacity = heap._minimumCapacity;
     _count           = heap._count;
 }