public override void DeepCopyPopulateFields(IDeepCloneObjectGraph graph, object clone) { base.DeepCopyPopulateFields(graph, clone); CxSymmetryBuilder builder = (CxSymmetryBuilder)clone; builder._multiplicity = _multiplicity; builder._unitNames = _unitNames; }
public override object DeepCopyFindOrCreate(IDeepCloneObjectGraph graph) { if (graph.TryGetClone(this, out object clone)) { return(clone); } CxSymmetryBuilder builder = new CxSymmetryBuilder(); graph.Add(this, builder); DeepCopyPopulateFields(graph, builder); return(builder); }