예제 #1
0
        public override void DeepCopyPopulateFields(IDeepCloneObjectGraph graph, object clone)
        {
            base.DeepCopyPopulateFields(graph, clone);

            CxSymmetryBuilder builder = (CxSymmetryBuilder)clone;

            builder._multiplicity = _multiplicity;
            builder._unitNames    = _unitNames;
        }
예제 #2
0
        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);
        }