Canguro.Model.StraightFrameProps.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : object
return object
        public override object Clone()
        {
            StraightFrameProps clone = (StraightFrameProps) base.Clone();
            if (clone.section != null)
            {
                if (Model.Instance.Sections[clone.section.Name] == null)
                    Model.Instance.Sections[clone.section.Name] = clone.section;
                else if (Model.Instance.Sections[clone.section.Name] is Canguro.Model.Section.FrameSection)
                    clone.section = (Canguro.Model.Section.FrameSection)Model.Instance.Sections[clone.section.Name];
            }
            return clone;
        }
StraightFrameProps