Example #1
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            Variable variable = (Variable)base.MemberwiseClone();

            variable.SequenceID = context.GenerateVariableSequenceID();
            variable.m_isClone  = true;
            if (this.m_name != null)
            {
                variable.m_name = context.CreateUniqueVariableName(this.m_name, this.m_isClone);
            }
            if (this.m_value != null)
            {
                variable.m_value = (ExpressionInfo)this.m_value.PublishClone(context);
            }
            return(variable);
        }