System.Xml.BitStack.PopBit C# (CSharp) Méthode

PopBit() public méthode

Pop the top bit from the stack and return it.
public PopBit ( ) : bool
Résultat bool
        public bool PopBit() {
            bool bit;
            Debug.Assert(this.curr != 0x1, "Stack empty");

            // Shift rightmost bit from this.curr
            bit = (this.curr & 0x1) != 0;

            this.curr >>= 1;

            if (this.curr == 0x1) {
                // If sentinel bit has reached the rightmost position, pop this.curr
                PopCurr();
            }

            return bit;
        }

Usage Example

        public override void WriteEndElement()
        {
            EndCDataSection();

            _wrapped.WriteEndElement();

            if (_lookupCDataElems != null)
            {
                _bitsCData.PopBit();
            }
        }
All Usage Examples Of System.Xml.BitStack::PopBit