Exemple #1
0
        public void Clone_SimpleType_ClonesContent()
        {
            var x = new DTO {
                Value = 27
            };

            var clone = Objects.Clone(x);

            Assert.That(clone.Value, Is.EqualTo(x.Value));
        }
Exemple #2
0
        internal SelectionState saveState()
        {
            SelectionState state = new SelectionState();

            state.SelectedItems  = Objects.Clone();
            state.SelectedBoxes  = Boxes.Clone();
            state.SelectedTables = Tables.Clone();
            state.SelectedArrows = Arrows.Clone();
            state.SelectedHosts  = ControlHosts.Clone();
            state.ActiveItem     = flowChart.ActiveObject;

            return(state);
        }
Exemple #3
0
 public Fundings Copy()
 {
     return(Objects.Clone(this));
 }