Пример #1
0
        public override object Clone()
        {
            MdxPropertyExpression clone = null;

            if (this.Object == null)
            {
                clone = new MdxPropertyExpression(null, this.Name);
            }
            else
            {
                clone = new MdxPropertyExpression(
                    (MdxExpression)this.Object.Clone(),
                    this.Name);
            }

            if (IsFunction)
            {
                clone.Args.AddRange((IEnumerable <MdxExpression>)Args.Clone());
                clone.IsFunction = true;
            }
            return(clone);
        }
		public override object Clone()
		{
            MdxPropertyExpression clone = null;
            if (this.Object == null)
            {
                clone = new MdxPropertyExpression(null, this.Name);
            }
            else
            {
                clone = new MdxPropertyExpression(
                    (MdxExpression)this.Object.Clone(),
                    this.Name);
            }

			if (IsFunction)
			{
				clone.Args.AddRange((IEnumerable<MdxExpression>)Args.Clone());
				clone.IsFunction = true;
			}
			return clone;
		}