BalticAmadeus.FluentMdx.MdxSet.Without C# (CSharp) Method

Without() public method

Removes the specified MdxMember and returns the updated current instance of MdxSet. If there are any MdxTuples in Children then specified MdxMember is appended to the last MdxTuple.
public Without ( MdxMember member ) : MdxSet
member MdxMember Specified .
return MdxSet
        public MdxSet Without(MdxMember member)
        {
            var lastTuple = _children.OfType<MdxTuple>().LastOrDefault();
            if (lastTuple == null)
            {
                _children.Remove(member);

                return this;
            }

            lastTuple.Without(member);

            return this;
        }