PeekBit() public method

Return the top bit on the stack without pushing or popping.
public PeekBit ( ) : bool
return bool
Esempio n. 1
0
        //-----------------------------------------------
        // Helper methods
        //-----------------------------------------------

        /// <summary>
        /// Write CData text if element is a CData element.  Return true if text should be written
        /// within a CData section.
        /// </summary>
        private bool StartCDataSection()
        {
            Debug.Assert(!_inCDataSection);
            if (_lookupCDataElems != null && _bitsCData.PeekBit())
            {
                _inCDataSection = true;
                return(true);
            }
            return(false);
        }