public object PublishClone(AutomaticSubtotalContext context) { EndUserSort endUserSort = (EndUserSort)base.MemberwiseClone(); if (this.m_sortExpression != null) { endUserSort.m_sortExpression = (ExpressionInfo)this.m_sortExpression.PublishClone(context); } if (this.m_sortExpressionScopeString != null) { endUserSort.m_sortExpressionScopeString = (string)this.m_sortExpressionScopeString.Clone(); } if (this.m_sortTargetString != null) { endUserSort.m_sortTargetString = (string)this.m_sortTargetString.Clone(); } if (this.m_sortTargetString != null || this.m_sortExpressionScopeString != null) { context.AddEndUserSort(endUserSort); } return(endUserSort); }