IsIndentationLevelOccupied() private method

Gets value indicating whether at specified indentation level there are more items to follow or last printed item on that indentation level is overall last item on that indentation level.
private IsIndentationLevelOccupied ( int level ) : bool
level int Indentation level at which status is requested.
return bool
        /// <summary>
        ///     Copy constructor. Used to build format providers that share common property values with some existing instance.
        /// </summary>
        /// <param name="other">Instance from which common property values will be copied.</param>
        public VerboseFormatInfoBase(VerboseFormatInfoBase other)
            : this()
        {
            _instanceDataType = other._instanceDataType;
            _instanceName     = other._instanceName;
            _fieldDelimiter   = other._fieldDelimiter;

            _firstContainedValuePrefix = other._firstContainedValuePrefix;
            _lastContainedValueSuffix  = other._lastContainedValueSuffix;

            _isMultiLinedFormat = other._isMultiLinedFormat;
            _linePrefix         = other._linePrefix;

            _indentationString              = other._indentationString;
            _rightMostIndentationString     = other._rightMostIndentationString;
            _lastIndentationString          = other._lastIndentationString;
            _lastRightMostIndentationString = other._lastRightMostIndentationString;

            _maximumDepth           = other._maximumDepth;
            _maximumFormattedLength = other._maximumFormattedLength;

            _showDataType     = other._showDataType;
            _showInstanceName = other._showInstanceName;

            while (_indentationLevel < other.IndentationLevel)
            {
                IncIndentationLevel(other.IsIndentationLevelOccupied(_indentationLevel + 1));
            }

            if (other._visitedInstances != null && other._visitedInstances.Count > 0)
            {
                var tempStack = new Stack <object>();
                foreach (var obj in other._visitedInstances)
                {
                    tempStack.Push(obj);
                }

                _visitedInstances = new Stack <object>();
                while (tempStack.Count > 0)
                {
                    _visitedInstances.Push(tempStack.Pop());
                }
            }
        }
		/// <summary>
		///     Copy constructor. Used to build format providers that share common property values with some existing instance.
		/// </summary>
		/// <param name="other">Instance from which common property values will be copied.</param>
		public VerboseFormatInfoBase(VerboseFormatInfoBase other)
			: this()
		{
			_instanceDataType = other._instanceDataType;
			_instanceName = other._instanceName;
			_fieldDelimiter = other._fieldDelimiter;

			_firstContainedValuePrefix = other._firstContainedValuePrefix;
			_lastContainedValueSuffix = other._lastContainedValueSuffix;

			_isMultiLinedFormat = other._isMultiLinedFormat;
			_linePrefix = other._linePrefix;

			_indentationString = other._indentationString;
			_rightMostIndentationString = other._rightMostIndentationString;
			_lastIndentationString = other._lastIndentationString;
			_lastRightMostIndentationString = other._lastRightMostIndentationString;

			_maximumDepth = other._maximumDepth;
			_maximumFormattedLength = other._maximumFormattedLength;

			_showDataType = other._showDataType;
			_showInstanceName = other._showInstanceName;

			while (_indentationLevel < other.IndentationLevel)
			{
				IncIndentationLevel(other.IsIndentationLevelOccupied(_indentationLevel + 1));
			}

			if (other._visitedInstances != null && other._visitedInstances.Count > 0)
			{
				var tempStack = new Stack<object>();
				foreach (var obj in other._visitedInstances)
				{
					tempStack.Push(obj);
				}

				_visitedInstances = new Stack<object>();
				while (tempStack.Count > 0)
				{
					_visitedInstances.Push(tempStack.Pop());
				}
			}
		}