/// <summary> /// Initializes a new instance of the <see cref="HierarchyMutableCore"/> class. /// </summary> /// <param name="objTarget"> /// The obj target. /// </param> public HierarchyMutableCore(IHierarchy objTarget) : base(objTarget) { this._codeRefs = new List<ICodeRefMutableObject>(); if (objTarget.HierarchicalCodeObjects != null) { foreach (IHierarchicalCode hierarchicalCode in objTarget.HierarchicalCodeObjects) { this.AddHierarchicalCode(new CodeRefMutableCore(hierarchicalCode)); } } if (objTarget.Level != null) { this._level = new LevelMutableCore(objTarget.Level); } this._hasFormalLevels = objTarget.HasFormalLevels(); }