ItemsCollection.CheckParent C# (CSharp) Method

CheckParent() private method

private CheckParent ( item )
        private CheckParent(Item item)
        {
            if(item.Parent != null) throw new Exception("Item already belongs to another ItemsCollection");
            //item.Parent = this.Owner;
            itemParentChanger(item, this.Owner); // Perfectly legal! :)
        }