public void Clone_SimpleType_ClonesContent() { var x = new DTO { Value = 27 }; var clone = Objects.Clone(x); Assert.That(clone.Value, Is.EqualTo(x.Value)); }
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); }
public Fundings Copy() { return(Objects.Clone(this)); }