/// <summary> /// Please implement this method to return a deep clone of the current object /// </summary> /// <returns></returns> public override ExpressionValue GetClone() { Entry copy = new Entry(); copy.key = this.key; copy.marked = this.marked; copy.next = this.next; copy.reff = this.reff; return copy; }
public EntryList(int n, int min, int max) { array = new Entry[n]; for (int i = 0; i < n; i++) { array[i] = new Entry(); } array[0].key = min; array[0].next = n - 1; array[n - 1].key = max; }