Exemple #1
0
        /// <summary>
        ///		Clona el contenido de una variable
        /// </summary>
        internal Variable Clone()
        {
            Variable variable = new Variable(Name, Value, Index, Scope);

            // Clona los miembros
            variable.Members.AddRange(Members.Clone());
            // Devuelve la variable
            return(variable);
        }
Exemple #2
0
        /// <summary> creates a copy of this view</summary>
        /// <returns> a copy of this view
        /// </returns>
        public override object Clone()
        {
            ViewId vid2 = Vid != null ? (ViewId)Vid.Clone() : null;

            System.Collections.ArrayList members2   = Members != null?(System.Collections.ArrayList)Members.Clone():null;
            System.Collections.ArrayList subgroups2 = subgroups != null?(System.Collections.ArrayList)subgroups.Clone():null;
            return(new MergeView(vid2, members2, subgroups2));
        }