public IPersistent[] ToArray() { IPersistent[] arr = new IPersistent[nMembers]; if (root != null) { root.toArray(arr, 0); } return(arr); }
internal int toArray(object[] arr, int index) { Load(); if (left != null) { index = left.toArray(arr, index); } for (int i = 0, n = nItems; i < n; i++) { arr[index++] = loadItem(i); } if (right != null) { index = right.toArray(arr, index); } return(index); }