Nanook.QueenBee.Parser.QbItemArray.Clone C# (CSharp) Method

Clone() public method

Deep clones this item and all children. Positions and lengths are not cloned. When inserted in to another item they should be calculated.
public Clone ( ) : QbItemBase
return QbItemBase
        public override QbItemBase Clone()
        {
            QbItemArray a = new QbItemArray(this.Root);
            a.Create(this.QbItemType);

            if (this.ItemQbKey != null)
                a.ItemQbKey = this.ItemQbKey.Clone();

            foreach (QbItemBase qib in this.Items)
                a.Items.Add(qib.Clone());

            a.ItemCount = this.ItemCount;

            return a;
        }