Пример #1
0
        /// <summary>
        /// Appends the specified <see cref="IMdxMember"/> and returns the updated current instance of <see cref="MdxSet"/>.
        /// </summary>
        /// <param name="member">Specified <see cref="IMdxMember"/>.</param>
        /// <returns>Returns the updated current instance of <see cref="MdxSet"/>.</returns>
        public MdxSet With(IMdxMember member)
        {
            if (member is MdxMember)
            {
                return(With((MdxMember)member));
            }

            if (member is MdxSet)
            {
                return(With((MdxSet)member));
            }

            if (member is MdxRange)
            {
                return(With((MdxRange)member));
            }

            if (member is MdxFunction)
            {
                return(With((MdxFunction)member));
            }

            if (member is MdxTuple)
            {
                return(With((MdxTuple)member));
            }

            return(this);
        }
Пример #2
0
        /// <summary>
        /// Removes the specified <see cref="IMdxMember"/> and returns the updated current instance of <see cref="MdxTuple"/>.
        /// </summary>
        /// <param name="member">Returns the updated current instance of <see cref="MdxTuple"/>.</param>
        /// <returns></returns>
        public MdxTuple Without(IMdxMember member)
        {
            if (member is MdxMember)
            {
                return(Without((MdxMember)member));
            }

            return(this);
        }
Пример #3
0
        /// <summary>
        /// Appends the specified <see cref="IMdxMember"/> and returns the updated current instance of <see cref="MdxSet"/>.
        /// </summary>
        /// <param name="member">Specified <see cref="IMdxMember"/>.</param>
        /// <returns>Returns the updated current instance of <see cref="MdxSet"/>.</returns>
        public MdxSet With(IMdxMember member)
        {
            if (member is MdxMember)
                return With((MdxMember)member);

            if (member is MdxSet)
                return With((MdxSet)member);

            if (member is MdxRange)
                return With((MdxRange)member);

            if (member is MdxFunction)
                return With((MdxFunction)member);

            if (member is MdxTuple)
                return With((MdxTuple)member);

            return this;
        }