Ejemplo n.º 1
0
        /// <summary> creates a copy of this view</summary>
        /// <returns> a copy of this view
        /// </returns>
        public virtual object Clone()
        {
            ViewId vid2 = vid != null?(ViewId)vid.Clone():null;

            System.Collections.ArrayList members2 = _members != null?(System.Collections.ArrayList)_members.Clone():null;
            View v = new View(vid2, members2);

            if (SequencerTbl != null)
            {
                v.SequencerTbl = SequencerTbl.Clone() as Hashtable;
            }
            if (MbrsSubgroupMap != null)
            {
                v.MbrsSubgroupMap = MbrsSubgroupMap.Clone() as Hashtable;
            }

            v._coordinatorGmsId = _coordinatorGmsId;

            if (DistributionMaps != null)
            {
                v.DistributionMaps = DistributionMaps.Clone() as DistributionMaps;
            }

            if (MirrorMapping != null)
            {
                v.MirrorMapping = MirrorMapping;
            }

            if (nodeGmsIds != null)
            {
                v.nodeGmsIds = nodeGmsIds.Clone() as Hashtable;
            }

            return(v);
        }